Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |