Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |