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.
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.
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 ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |