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 trying to create a chart that has a legend with 5 or 6 different items.
The chart shows the percentage of an event occuring for each legend item, so you can have big swings in percentage. I would like to show the percentage for each legend based on the total amount (i guess you would describe this as having the denominator being an unfiltered total amount, whilst the numerator is the filtered/legend amount). Does anyone have any suggestions on how to do this?
Here is the measure I am using to get the %:
Solved! Go to Solution.
I added a VALUES filter argument with a placeholder column name (replace with your actual date column name):
1At3BalPct =
VAR TotLoans =
CALCULATE (
SUM ( 'BackBook'[amounttofinance] ),
ALL ( 'BackBook' ),
VALUES ( 'Backbook'[Date Column] )
)
VAR Tot1at3 =
CALCULATE ( SUM ( 'BackBook'[amounttofinance] ), 'BackBook'[Down1at3C] <> 0 )
RETURN
DIVIDE ( Tot1at3, TotLoans )
Proud to be a Super User!
Try this measure:
1At3BalPct =
VAR TotLoans =
CALCULATE ( SUM ( 'BackBook'[amounttofinance] ), ALL ( 'BackBook' ) )
VAR Tot1at3 =
CALCULATE ( SUM ( 'BackBook'[amounttofinance] ), 'BackBook'[Down1at3C] <> 0 )
RETURN
DIVIDE ( Tot1at3, TotLoans )
Proud to be a Super User!
Thanks for this.
It doesnt quite work as the this measure is being pushed into a chart to show on a monthly basis, but the addition of the ALL ( Backbook ) means that it is dividing the monthly value for 'BackBook'[Down1at3C] <> 0 against the total EVER and not just by each of the months in the chart.
Is there a way of adjusting this so it incorporates that date element?
I added a VALUES filter argument with a placeholder column name (replace with your actual date column name):
1At3BalPct =
VAR TotLoans =
CALCULATE (
SUM ( 'BackBook'[amounttofinance] ),
ALL ( 'BackBook' ),
VALUES ( 'Backbook'[Date Column] )
)
VAR Tot1at3 =
CALCULATE ( SUM ( 'BackBook'[amounttofinance] ), 'BackBook'[Down1at3C] <> 0 )
RETURN
DIVIDE ( Tot1at3, TotLoans )
Proud to be a Super User!
Thank you, thats great.
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 |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |