cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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


@ 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!:
Mastering Power BI 2nd Edition

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors