The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hey!
I have made a column that have split the total number of rows into either Red or Green based on the value.
Green / Red is a column with the function: Green/Red = IF ( Row >= 50 , "Green", "Red")
Then to get the Number of columns: Number of Green/Red = Count ( Green/Red )
and lastly
Function I am attempting is = SUM( Row ) / ( Number of Green/Red)
I now want to calculate what % of rows falls into each - how do I do this?
Thank you!
@Pandetbaby If you are looking for percentage of each category in total Please use below measure
Measure =
VAR _category = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[GreenRed]))
VAR _total = CALCULATE(SUM('Table'[Sales]),ALL('Table'))
RETURN DIVIDE(_category,_total,0)
User | Count |
---|---|
14 | |
11 | |
7 | |
7 | |
7 |
User | Count |
---|---|
22 | |
22 | |
12 | |
10 | |
7 |