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

One date contains multiple values rows per store, I only want to show one value in a line chart

So per date I have different stores. These different stores have different strategies 1,2 and 3 and the sales depend on this strategy. Strategy 1 is the most effective so if strategy 1 is filled I always want to show the sales of strategy 1 in the plot. However this strategy is not always filled. The data is shown below.

 

DateStoreStrategySales
1-1-2020111500
1-1-2020121200
1-1-2020131000
1-2-2020112000
1-2-2020121500
1-2-2020131100
1-3-2020121500
1-3-2020131400
1-4-2020131200
1-5-2020131300
1-6-2020131500

 

So I have made a plot, but it shows multiple line where I only want to show 1 line. 

Linechart example.png

The priority is as follows: if Strategy is 1 show only this line. If there is no Strategy 1, but there are 2 and 3 show only Strategy 2. If there are no Strategy 1 or Strategy 2 show Strategy 3

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

Refer, I created this with rank and filter on rank 1.

I did get if 1 id there then should we show 2 or not. As of now it will only show 1 or 2 or 3 . And rank will make sure that

https://www.dropbox.com/s/s3twy8nta81bhch/Onlyoneline.pbix?dl=0

View solution in original post

@Anonymous ,

does the above reply helps. if you need more help make me @

 

Appreciate your Kudos.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

Refer, I created this with rank and filter on rank 1.

I did get if 1 id there then should we show 2 or not. As of now it will only show 1 or 2 or 3 . And rank will make sure that

https://www.dropbox.com/s/s3twy8nta81bhch/Onlyoneline.pbix?dl=0

Anonymous
Not applicable

Yes this was exactly what I needed, thank you for your help!

@Anonymous ,

does the above reply helps. if you need more help make me @

 

Appreciate your Kudos.

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.