Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, please, someone help me.
I have an issue as below.
How can I adjust the DAX measure below to also calculate the sum for the grand total?
I have the following DAX measure below, it works correctly for each line, but it is not calculating the total value of the grid which is returning empty. I'm trying to use the SUMX function but it's not working to calculate the grand total.
You can download the PBIX file here
Single Measure = VAR Seller_1_in_Scope = HASONEFILTER('customer table'[Name Seller1]) VAR Seller_2_in_Scope = HASONEFILTER('customer table'[Name Seller2]) RETURN SWITCH( TRUE(), Seller_1_in_Scope && NOT Seller_2_in_Scope, SUMX( VALUES('customer table'[Name Seller1]),CALCULATE([Goal Seller 1])), Seller_2_in_Scope && NOT Seller_1_in_Scope, SUMX( VALUES('customer table'[Name Seller2]),CALCULATE([Goal Seller 2])), Seller_1_in_Scope && Seller_2_in_Scope, SUMX( SUMMARIZE( 'customer table', 'customer table'[Name Seller1],'customer table'[Name Seller2]), CALCULATE([Goal Seller 1] + [Goal Seller 2]) ) )
Try this
Thank you, but it is not so easy, i need no check what column is in scope before calcate
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |