cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rmeng
Helper II
Helper II

Calculated Column With The Total value of a measure when Slicing different periods

I´m using this measure to add a calculated column, when I select from Dim Date the Quarter Year option, the result is 4 as expected:rmeng_0-1679508311261.png

If I slice by Month Year instead of Quarter Year this Calculated column should be 2 not 4 

rmeng_1-1679508501142.png

I´ve tried to use AllExcept to keep filters from dim date but the result is 1:

rmeng_2-1679508878650.png

Could you help me to find the right calculation ?

Thanks

 
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Calculated columns are only calculated during data refresh, so they do not pay any attention to filters or slicers which may be set in a report. If you want something to dynamically respond to slicers you need to define it as a measure.

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Calculated columns are only calculated during data refresh, so they do not pay any attention to filters or slicers which may be set in a report. If you want something to dynamically respond to slicers you need to define it as a measure.

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors