Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Percentage of the grand total, using Measure and ALL()

Hey,

 

I'm trying to create a scoring based on contents created.

I'm using 
Score =
CALCULATE(COUNT('table'[Id]),
FILTER('table','table'[CreatedDate] > TODAY()-365))/
CALCULATE(COUNT('table'[Id]),
ALL('table'[Id]),
FILTER('table','table'[CreatedDate] > TODAY()-365))

 

When viewing just the value, it provides the correct value at 1.0,

Now when I put the people's NAME on the Axis, everyone has 1.0 instead of splitting it to each name from ALL(). I see that if I do Count then Show Value as % of Grand Total, it will achieve my result in percentage, but I can't add more calculation to that.

I'm trying to do the denominator and the numerator as a VAR but couldn't get that to work either.

1 REPLY 1
mattbrice
Solution Sage
Solution Sage

Is this what you had intended(?):

 

Score =
CALCULATE (
    COUNT ( 'table'[Id] ),
    FILTER ( 'table', 'table'[CreatedDate] > TODAY () - 365 )
)
    / CALCULATE (
        COUNT ( 'table'[Id] ),
        FILTER ( ALL ( 'table' ), 'table'[CreatedDate] > TODAY () - 365 )
    )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.