Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

I have an issue with my DAX calculate total based on filtered slicer

I have a dataset with column MeetingYrQtr based in meeting date, RegionCode and YrQtrName based on another table with dates. 

I want to change my dax PBWithMinsTQtrEXP to calculate total ProjsWithMins when MeetingYrQtr = YrQtrName that I selected from the slicer for example "2024 Q1" is the selected value in YrQtrName slicer it should display 12 as total 

 

sjpbi_0-1712293168359.png

 

The display is wrong when i used this formula 

PBWithMinsTQtrEXP = CALCULATE(SUM(PBMins[PrjsWithMins]),PBMins[MeetingYrQtr]= MAX(Dim_Date_ALL[YrQtrName]))
 

sjpbi_1-1712293470431.png

 

 

Status: Investigating

Hi @sjpbi ,

 

You can use var _select = selectedvalue(Dim_Date_ALL[YrQtrName])) to get the year you want, so your expression should change to PBMins[MeetingYrQtr]=_select

 

Best regards,
Community Support Team_ Scott Chang

Comments
v-tianyich-msft
Community Support
Status changed to: Investigating

Hi @sjpbi ,

 

You can use var _select = selectedvalue(Dim_Date_ALL[YrQtrName])) to get the year you want, so your expression should change to PBMins[MeetingYrQtr]=_select

 

Best regards,
Community Support Team_ Scott Chang