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

Be 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

Reply
Balaraju
Helper II
Helper II

Highlight the Bar based on line chart values

Hi All,

 

I have one requirement i.e I have line chart showing that month wise promoter sales and Bar chart showing that top 5 Promoter Sales.

 

You can see below screenshot we have 3 promoters in line chart under store A and Top 5 promoters in bar chart, Promoter 1002 and 1003 are present under top 5 Prometer list in Bar chart.

 Screenshot_1.png 

 

Now the actual requirement is I want to see who so ever promoter reflecting in line chart and Bar chart should be highlighted with another color. you can see the below output image. 

Screenshot_2.png

 

Thanks,

Bala.

 

 

 
 
 

 

 

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

There @Syndicate_Admin ,

This is my test table:

vyadongfmsft_0-1663741558484.png

Please try following DAX to create measures:

Sum of sales = SUMX(FILTER(ALL('Table'),'Table'[Promoter ID] = SELECTEDVALUE('Table'[Promoter ID])),'Table'[Sales])

Rank = RANKX(ALLSELECTED('Table'),[Sum of sales],,DESC,Dense)

Grey = IF(MAX('Table'[Promoter ID]) = "1002" || MAX('Table'[Promoter ID]) = "1003","Grey")

Create a line chart and put [Promoter ID] in filters like below image shown:

vyadongfmsft_1-1663741800028.png

Create a stacked column chart and put [Rank] in filters like below image shown:

vyadongfmsft_3-1663741973847.png

And then condinitional formatting for column's color:

vyadongfmsft_4-1663742063144.png

vyadongfmsft_5-1663742187084.png

vyadongfmsft_6-1663742203624.png

Best regards,

Yadong Fang

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

@Syndicate_Admin Thank you for your update, but it is not suitable for me, could you please check my table below I have different stores if i am going to select another store other promoters information is visible at line chart if the promoters in line chart is present top 5 promoters bar chart I want to see the grey color for bar.

 

Promoter IDStore NameMonthSales 
1001AJan-22100
1001AFeb-22150
1001AMar-22250
1002AJan-22350
1002AFeb-22250
1002AMar-2250
1003AJan-22300
1003AFeb-22200
1003AMar-2250
1004BJan-22150
1004BFeb-22250
1004BMar-2250
1005BJan-22300
1005BFeb-22200
1005BMar-2250
1006BJan-22100
1006BFeb-22150
1006BMar-22250
1007CJan-22300
1007CFeb-22250
1007CMar-2250
1008CJan-22300
1008CFeb-22200
1008CMar-2250
1009CJan-22350
1009CFeb-22250
1009CMar-22150

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.