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
I am in doubt as to how to perform percentages when I go to the next level of drill down in my matrix, the first line was ok, but when I go down the level, 100% is displayed in all data.
My base formula is:
Total Sales Underline = CALCULATE([Sale Qty Weight KG], ALLSELECTED('Item'[Underline - Name]))
% Share Underlines = DIVIDE([Sales Qty Weight KG], [Total Sales Underlines])
but there are other levels that need the percentage. Can someone help me?
how I use the other lines, like:
Item [Group - Name]
Item - Description [Description]
Solved! Go to Solution.
hi @Anonymous
try like:
% Share Underlines =
DIVIDE(
[Sales Qty Weight KG],
CALCULATE(
[Sale Qty Weight KG],
ALLSELECTED('Item'[Description])
)
Tried to simulate your case. Supposing your table looks like:
then try to plot the matrix with a measure like:
%Share =
DIVIDE(
SUM(TableName[Qty]),
CALCULATE(
SUM(TableName[Qty]),
ALLSELECTED(TableName[Description])
)
)
it worked like:
hi @Anonymous
try like:
% Share Underlines =
DIVIDE(
[Sales Qty Weight KG],
CALCULATE(
[Sale Qty Weight KG],
ALLSELECTED('Item'[Description])
)
Tried to simulate your case. Supposing your table looks like:
then try to plot the matrix with a measure like:
%Share =
DIVIDE(
SUM(TableName[Qty]),
CALCULATE(
SUM(TableName[Qty]),
ALLSELECTED(TableName[Description])
)
)
it worked like:
Good morning,
It worked, thank you very much!
In this case, I used the formula as:
% Participation Underlines = DIVIDE(
[Sale Qty Weight KG],
CALCULATE([Sale Qty Weight KG],
ALLSELECTED('Item - Description'[Item - Description]), ALLSELECTED('Item'[Group - Name]), ALLSELECTED('Item'[Underline - Name])
))
What happended when you add Item [Group - Name]
Item - Description [Description] in the this statement? Like;
ALLSELECTED('Item'[Underline - Name],Item [Group - Name])
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
17 | |
9 | |
5 |
User | Count |
---|---|
37 | |
29 | |
16 | |
14 | |
12 |