Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |