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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Invesco
Helper V
Helper V

DAX Measure not adding up

Hi Experts

 

Cannot see the error in my DAX Measure (the table below clearly shows the Sum of No and Yes as 130 but the total is 113) everything is in one master FACT table....meseaure below

Invesco_0-1661173729391.png

Measure

ActivityCountTest_ = Calculate(distinctCOUNT('act_rates_activity_volume_and_cf_days'[crm_call_name]),
                        FILTER(VALUES(act_rates_activity_volume_and_cf_days),
                        not(act_rates_activity_volume_and_cf_days[activity_type_2] IN {"customer_facing_day","blank_call_type"})))
1 ACCEPTED SOLUTION

worked it out

ActivityCount_ =
        sumx(SUMMARIZE(act_rates_activity_volume_and_cf_days,act_rates_activity_volume_and_cf_days[activity_type_1],act_rates_activity_volume_and_cf_days[MCCP Flag]),[ActivityCountTest_])

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Invesco This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

worked it out

ActivityCount_ =
        sumx(SUMMARIZE(act_rates_activity_volume_and_cf_days,act_rates_activity_volume_and_cf_days[activity_type_1],act_rates_activity_volume_and_cf_days[MCCP Flag]),[ActivityCountTest_])

Hi Greg Tried it and no luck>>>>

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.