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.
I have read some solutions about this issue, but all of them was about the difference between date. I could not run any formula about my issue.
My sample data is below:
Is it possible to create a table or matrix in PBI looking like the following image? Currently, I am creating this table in Excel outside the pivot table, then import to the PBI. It takes so much time. If you help me, I will be more than happy.
Solved! Go to Solution.
Using an Enter Data query, I created a table with the following values:
Relate this table to your other table. I then created the following measures:
SumUnitsTaken = SUMX(RELATEDTABLE(College),'College'[Unit Taken]) S15 vs S14 = CALCULATE([SumUnitsTaken],College[Term] = "S15") - CALCULATE([SumUnitsTaken],College[Term] = "S14") S16 vs S15 = CALCULATE([SumUnitsTaken],College[Term] = "S16") - CALCULATE([SumUnitsTaken],College[Term] = "S15")
Create a table with College, S15 vs S14 and S16 vs S15
Using an Enter Data query, I created a table with the following values:
Relate this table to your other table. I then created the following measures:
SumUnitsTaken = SUMX(RELATEDTABLE(College),'College'[Unit Taken]) S15 vs S14 = CALCULATE([SumUnitsTaken],College[Term] = "S15") - CALCULATE([SumUnitsTaken],College[Term] = "S14") S16 vs S15 = CALCULATE([SumUnitsTaken],College[Term] = "S16") - CALCULATE([SumUnitsTaken],College[Term] = "S15")
Create a table with College, S15 vs S14 and S16 vs S15
@Greg_Deckler For my own learning, can I ask the purpose of the Enter Data table you used? I got to the same end result of the desired matrix with just the three measures:
SumUnitsTaken = SUM(TableName[Unit Taken]) S15 vs S14 = CALCULATE([SumUnitsTaken], TableName[Term]="S15") - CALCULATE([SumUnitsTaken], TableName[Term]="S14") S16 vs S15 = CALCULATE([SumUnitsTaken], TableName[Term]="S16") - CALCULATE([SumUnitsTaken], TableName[Term]="S15")
Probably because I'm old school and still think in star schemas and snowflake schemas and fact and dimension tables. Old habits die hard.
Ha, nothing wrong with that! I just thought I might be missing out on something cool. Thanks!
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 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |