This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi friends,
How can I adjust the DAX measure below to also calculate the sum for the grid total?
I have the following DAX measure below, it works correctly, 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 total.
Download the PBIX 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])
)
)
@Rai_BI Try using HASONEVALUE instead of HASONEFILTER.
I already try it, but did not work.
HI @Rai_BI,
It seems like a common issue that appears when measure calculate with multiple aggregations, you can refer other greg's blog to know how to handle this scenario.
Measure Totals, The Final Word
Regards,
Xiaoxin Sheng
Thank you, looks like we´re in rigth track. But i still don´t know how to apply this solution on my issue, can you help me?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 6 | |
| 6 |