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.
Hello All,
I have a table of students and their marks across subjects and tests:
I have created a matrix in PowerBI as below:
Now, I want to add a custom row in matrix that gives sum of Geometry and Algebra marks, kindly help me.
Thanks.
Solved! Go to Solution.
Hi @ONCKdata
A simple solution came into my mind :
Create a new column "Category"
Category = IF(OR(YourTable[Subject]="Geometry";YourTable[Subject]="Algebra");"Science";"Others")
Add it to the lines of your matrix and expand it to the level where it looks like that :
- Quentin
Hi @ONCKdata
A simple solution came into my mind :
Create a new column "Category"
Category = IF(OR(YourTable[Subject]="Geometry";YourTable[Subject]="Algebra");"Science";"Others")
Add it to the lines of your matrix and expand it to the level where it looks like that :
- Quentin
Hi,
Thank you very much for the reply.
Your solution solves the question I have asked, but can you tell me if there is way to mention difference of two rows?
To make a difference between two rows is very tricky and complicated, this is why I don't do it (example here : https://community.powerbi.com/t5/Desktop/How-to-calculate-difference-between-two-row-values/td-p/389...)
What I prefer to advice is to pivot / unpivot the needed rows so that they became column and can be comparable with a simple '-'
- Quentin
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 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |