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, i have a test table:
| ID Nrb | Country | Scenario | Share |
| 363331 | Australia | Actual | 1.00 |
| 363331 | China | Actual | 1.00 |
| 363331 | Denmark | Actual | 1.00 |
| 363331 | Indonesia | Actual | 1.00 |
| 363331 | India | Actual | 1.00 |
| 363331 | Japan | Actual | 1.00 |
| 363331 | Canada | Actual | 1.00 |
| 363331 | Finland | Actual | 1.00 |
| 363331 | Norway | Actual | 1.00 |
| 363331 | Singapore | Actual | 1.00 |
| 363331 | Germany | Actual | 1.00 |
| 363331 | Spain | Actual | 1.00 |
| Total | 1.00 |
I want to have a total share group by those 3 colums like 12
Solved! Go to Solution.
Hi @Anonymous,
You can try to use the following measure formulas, I add a variable with summarize function to aggregate value based on categories and use the iterator function to apply these second aggregations to summary previous results.
formula =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table ),
[ID Nrb],
[Country],
[Scenario],
"_Share", [Share]
)
RETURN
SUMX ( summary, [_Share] )
Regards,
Xiaoxin Sheng
Hi @Anonymous,
You can try to use the following measure formulas, I add a variable with summarize function to aggregate value based on categories and use the iterator function to apply these second aggregations to summary previous results.
formula =
VAR summary =
SUMMARIZE (
ALLSELECTED ( Table ),
[ID Nrb],
[Country],
[Scenario],
"_Share", [Share]
)
RETURN
SUMX ( summary, [_Share] )
Regards,
Xiaoxin Sheng
@Anonymous
is share column a measure?
if not, when you set share as sum, you should get 12
Proud to be a Super User!
Hi, I forgett mention that Share is a measure
@Anonymous
maybe you can try this
Proud to be a Super User!
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 |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |