Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
This is something I've struggled with on multiple dashboards I've built for clients. In the screenshot above for example, I'm trying to find the variance between 2025 Revenue and 2024 Revenue. Normally what I do is create a visual calculation that contains two variables such as:
CY = CALCULATE(SUM([Revenue]), Year = 2025)
LY = CALCULATE(SUM([Revenue]), Year = 2024)
RETURN
CY - LY
Then I would have three different 'Variance' columns showing for each year and the total. I would hide two of them and use one to display. If I don't do it this way, I normally create a separate matrix next to the 'main' matrix and use a measure for variance and hide the row headers to make it seem as if its connected the same 'main' matrix.
It seems like such a simple task, but requires multiple 'formatting' steps I find unneccesary, so I'm wondering if anyone has a better way of doing this than I do. Any ideas at all I would be interested to hear! Thanks in advance
Hi @getsmithed ,
May I ask if you have gotten this issue resolved?
If not please provide the sample data and expected output, If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Regards,
Chaithra.
Hi @getsmithed ,
As we haven’t heard back from you and did not find any sample data to work with , we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi @getsmithed ,
We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi Chaithra,
Your 'solution' is something I've already put in the description for my question. Not sure why you thought that would be considered a solution after reading my question. I asked for alternative methods to doing this.
Hi @getsmithed ,
Apologies for the earlier response—I now realize you were specifically asking for alternative approaches, not the one you'd already mentioned. I would request you to please share a small sample of your dataset and the expected output.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Hi @getsmithed ,
Thank you for reaching out to Microsoft Commuity.
Inorder to acheive the variance column, you can create a measure using the below DAX and add it to your matrix visual.
Revenue Variance =
VAR Revenue2025 = CALCULATE([Revenue], 'Date'[FiscalYear] = 2025)
VAR Revenue2024 = CALCULATE([Revenue], 'Date'[FiscalYear] = 2024)
RETURN
Revenue2025 - Revenue2024
If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.
Thanks,
Chaithra E.
@getsmithed - You could always use a table visuals and create some very specific measures. It'll be quicker and use less formatting, but, it will not be dynamic.
Although saying that, the way you have to write the visual calculation isn't either.
If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
46 |