Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all -
I have built a matrix in Power BI and want to show a percentage difference between the values by row PY vs TY:
So it looks something like:
| 2023 | 2024 | Total | % Diff. |
| 22119 | 19488 | 41607 | -11.89% |
| 10809 | 8237 | 19046 | -23.79% |
| 1857 | 2147 | 4004 | 15.62% |
| 34785 | 29872 | 64657 | -14.12% |
Thanks
RDF
Solved! Go to Solution.
Hi @RDF25087
You will need a disconnected table and some measures to achieve your use case like below:
Sample pbix is on the video description:
https://youtu.be/UMz-X-l0_jQ?si=slcTkWzuFJVe025E
You can create a new measure:
% Diff = (TY -PY) / PY
Then you can format it and add it to your matrix visual.
@RDF25087 , Use DAX to create new measure
% Diff. =
VAR PY = SUM('YourTable'[PY])
VAR TY = SUM('YourTable'[TY])
RETURN
DIVIDE(TY - PY, PY, 0) * 100
Proud to be a Super User! |
|
Hi @RDF25087
You will need a disconnected table and some measures to achieve your use case like below:
Sample pbix is on the video description:
https://youtu.be/UMz-X-l0_jQ?si=slcTkWzuFJVe025E
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |