March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone
I have a problem and I can not solve it.
I have a table like this:
I need to build a graph with a sum of deviation in relation to previous month. To count the deviation I need to consider always the max – min between the current month and the previous month
For example, to February:
And finally, I need to create the chart like this:
I am trying but probably I am doing something wrong-
Does someone help me?
Solved! Go to Solution.
@Anonymous
Create a Date table as it will help you with the time intelligence functions. Check the attached file.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi, @Anonymous
I suggest having a dim-calendar table like below.
please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Anonymous
Please check the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Anonymous
I suggest having a dim-calendar table like below.
please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thank you so much.
I tried to do your advice but insted of create a measure I am creating a column using dax to add on table the desviation column but your rule doesn´t work.
Could you please explain me why?
Thanks
Hi, @Anonymous
Thank you for your feedback.
I think you cannot use the formula for creating a column that is for creating a measure.
how does your expected outcome look like?
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I would like to create a new column with desviation as your measure do. I want to create a columns like this:
Hi, @Anonymous
Please check the below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Anonymous
Create a Date table as it will help you with the time intelligence functions. Check the attached file.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hey @Anonymous ,
you can calculate the value from the last month and subtract that from the current month:
Deviation Last Month = SUM( myTable[No of Sales] ) - CALCULATE( SUM( myTable[No of Sales] ), DATEADD( myTable[Date], -1, MONTH ) )
This should work for your case.
Hello
Thanks, but you resolution doesn´t work.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
88 | |
73 | |
67 | |
49 |
User | Count |
---|---|
199 | |
140 | |
96 | |
77 | |
68 |