Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in BI by (11.1k points)

I have created a calculated field identify between weekday/weekend


    DATENAME('weekday', [Date]) = "Saturday"

OR DATENAME('weekday', [Date]) = "Sunday"
 THEN "Weekend" 

For day calculation

IF [Day] = 'Weekday'
THEN [Number of Records]/22

[Number of Records]/8 

END )) 

Average Calculation:

[Number of Records] * 1.2 > [Average]


[Number of Records] * 0.8 < [Average] 

I am getting some wrong calculations based upon the above calculations 

1 Answer

0 votes
by (22.5k points)
edited by

The average calculation should look like this:

{FIXED [Day]: AVG([Sales])}

Outlinear Calculation:

[Sales] > 1.2 * [Average] OR [Sales] < 0.8 * [Average] 

If you want to check more about calculated fields then learn Tableau

Also, do watch the YouTube video given below to get started with Tableau training.


Related questions

0 votes
2 answers
0 votes
1 answer
asked Dec 12, 2020 in BI by Chris (11.1k points)

Browse Categories