Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Showing relative change in line chart

Hi,

 

I have a dataset with around 80 testvalues each day, and I want to plot each of them separately in a line graph to see the development. This I have achieved with a filtering.

In this line graph I also want to show the allowable relative change (both upper and lower, say +/- 5%), from day to day as two other lines. The idea is for me to be able to see when the testvalue changes too much. Therefore I want the relative change line to be shifted so it shows in relation to the datapoint of the previous day. Is there a way to do this?

Something like below, but without the circles and the gridlines.

Capture.PNG

I have a testID for each testvalue, as well as a field called testdate with the date.

 

Thank you in advance!

1 ACCEPTED SOLUTION

@Anonymous ,

 

You can use DAX function like

 

PREVIOUSDAY(<dates>)  

https://docs.microsoft.com/en-us/dax/previousday-function-dax

 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

In general, you can create an additional measure or calculate column and then drag it to the value field. 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you!

 

I have tried that, but I can't seem to get it to relate to the previous day, only today.

Do you have tips to how I can do this?

@Anonymous ,

 

You can use DAX function like

 

PREVIOUSDAY(<dates>)  

https://docs.microsoft.com/en-us/dax/previousday-function-dax

 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.