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
Gregory1
Frequent Visitor

Chart displaying difference between 2 lines chart

Good morning all

I have a 2 lines chart with dates as x axis and price as y axis ( like a stock chart displaying 2 stocks prices by day, see below screenshot bottom chart).

So I have this 2 lines chart and I wonder if there is an embedded analytics that could calculate the difference of my prices without the pain of creating a column.

chart.PNG

 

The result would something like below:

chart2.PNG

tks by advance

Gregory

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Gregory1 ,

Nope, you can't use analytics features to analyze the diff of your fields. You need to create a new measure to calculate the difference between two fields.

If you confused on coding formula, please share some sample data for test:

How to Get Your Question Answered Quickly  

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

tks Xiaoxin 

I could do the trick by unpivoting the Query and adding a table to select the chart I wanted. see result in pictchart.PNG.

Now that I can select what I can display the two daily prices series I want to create a measure that calculate the difference between the 2 daily prices series. How can I do that (in case someone knows)? 

HI @Gregory1 ,

Can you please share some dummy data with the same structure for test? It seems like you have converted your table structure.

Notice: do mask on sensitive data.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.