March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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 @yellow_old_5,
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 @yellow_old_5,
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
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
maybe you can try this
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |