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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gracie494
Helper I
Helper I

DAX Sum based on another filter table

How do I create a dax formula that displays the correct value for each row&Column rather than summarising the grand total. 

This is the fomula I attempted but it just sums up the Total rather than displaying the value for each RU

 

Column = IF(GAAP[Column1]="IFRS",CALCULATE(SUM(Grace_TEST_PBI[Values])) ,CALCULATE(SUM('Grace_TEST_PBI'[Values - IFRS17])))
 
gracie494_0-1632217832448.png

 

1 ACCEPTED SOLUTION

Thanks I managed to find a workaround by using Switch. Thanks for your help.
Measure 3 = SwITCH(SELECTEDVALUE(GAAP[GAAP]),"IFRS", [meas],"IFRS17",[Measure 2])

View solution in original post

5 REPLIES 5
VahidDM
Super User
Super User

Hi @gracie494 

 

Is there any relationship between GAAP and Grace_TEST_PBI tables?

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos✌️!!

I just manually created that table to act as filter. So if someone selects 'IFRS' it will display the data based on the IFRS Value column, and if someone selected IFRSN it will show values in the IFRSN Values column

Those years on the columns are from the Grace_TEST_PBI table?

Can you share a sample of your tables here? [after removing sensitive data]

Appreciate your Kudos!!

 

Thanks I managed to find a workaround by using Switch. Thanks for your help.
Measure 3 = SwITCH(SELECTEDVALUE(GAAP[GAAP]),"IFRS", [meas],"IFRS17",[Measure 2])

Hello, thanks for responding. No there is no relationship between the tables

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.