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 Power BI community 🙂
I have a matrix table with 3 columns
What I would like to do is add a third column with % varaince between column 2 & 3
Would someone mind explaining have a I can do this why an expression?
Many thanks in advance
Solved! Go to Solution.
HI @JayKarim ,
You can try below code:-
variance =
VAR result =
DIVIDE (
( [Total Sales £) YOA 2021] - [(Total Sales £) YOA 2020] ),
[(Total Sales £) YOA 2020]
)
RETURN
FORMAT ( result, "PERCENTAGE" )
Note- I am considering you have created a measure for the calculation of (Total Sales £) YOA 2020,(Total Sales £) YOA 2021
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi Samarth,
This worked 🙂 Thank you so much
Jay
HI @JayKarim ,
You can try below code:-
variance =
VAR result =
DIVIDE (
( [Total Sales £) YOA 2021] - [(Total Sales £) YOA 2020] ),
[(Total Sales £) YOA 2020]
)
RETURN
FORMAT ( result, "PERCENTAGE" )
Note- I am considering you have created a measure for the calculation of (Total Sales £) YOA 2020,(Total Sales £) YOA 2021
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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 |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |