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

Add combined line to Line Chart

Hi there! I have a line chart below that represents different categories across months. Is it possible to have an additional line that combines the three series in a way that adds the "missing" percent for each month for each series?

 

E.g. in the month of August this new line would have a value of 88% because 100%-(100%-100%)-(100%-98%)-(100%-90%).

 

This would for example show the total downtime across multiple pieces of equipment in a factory.

 

 

Capture.JPG

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous 

with the november update of pbid you can do it like this:

20-11-_2020_17-05-20.png

 

Missed = 
VAR _ValueOfA = MIN('Table'[A_])
VAR _ValueOfB = MIN('Table'[B_])
VAR _ValueOfC = MIN('Table'[C_])
VAR _Missed = 3 - (_ValueOfA + _ValueOfB + _ValueOfC)
RETURN
    1 - _Missed

 

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

6 REPLIES 6
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

I can't download the sample data from your link. Would you please inform us more detailed information( your data and expected output (by OneDrive for Business)) if possible? Then we will help you more correctly.

 

Please do mask sensitive data before uploading.

 

Thanks for your understanding and support.

 

Best Regards,

Dedmon Dai

 

FrankAT
Community Champion
Community Champion

Hi @Anonymous 

with the november update of pbid you can do it like this:

20-11-_2020_17-05-20.png

 

Missed = 
VAR _ValueOfA = MIN('Table'[A_])
VAR _ValueOfB = MIN('Table'[B_])
VAR _ValueOfC = MIN('Table'[C_])
VAR _Missed = 3 - (_ValueOfA + _ValueOfB + _ValueOfC)
RETURN
    1 - _Missed

 

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Anonymous
Not applicable

Ah interesting idea! My current data is pivoted, so the categories are all in one column. But it's a good idea to unpivot it. Why is the november release required for this?

Hi @Anonymous 

it's interesting for the chart. You can slide the Y-axis, but for your requirements it's not necessary.

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

@amitchandak please see example here: https://gofile.io/d/mnREae

 

I'd be looking for an additional line that would have the value of 80

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.