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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Total of conditional measures with multiple tables

Hello,

 

I'm simply trying to find an efficient way to calculate the grand total of a column with conditional measures.

In this particular case we have May and June sales data in 2 different tables which are joined by the country column. When June data are missing , the blank cells are calculated using the May data. (june sales = may sales x 0.5). (see below)

 

The problem is that the total ($10000) of the "Calculated Junes Sales" column is wrong. I have tried to used SUMX to resolved this issue with no success. The difficulty comes from the fact that May and June data are in 2 different tables.

 

Thank you for your help.

 

malonganicolas_0-1656330573847.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Assume you have measure [May Sales], Try like

 

sumx(Values(Table[Country]), [May Sales]* .5)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.