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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
justinMcC
Frequent Visitor

Measure to x axis chart or dymanic table

Hi,

 

 

I have a using a table, measure and slicer to categorise my data. I need to create a chart showing the result of measure, which I need to update when user changes value of slicer. Below is sample data

 

Table:

Clients     Min_eligible

client_1    10

client_2    20

client_3    30

 

Slicer:

10

20    (eg selected value)

30 

 

Measure:

IF min_eligible < slicer, 'partical' else 'full'

 

Result:

Clients     Min_eligible    Measure

client_1    10                   Partial

client_2    19                   Partial

client_3    30                   Full

 

I need to create a clusterd chart showing measure and count of clients, ie

 

Full        1

Partial    2

 

I need the above result to auto update if the end user changes the selected value in slicer. Is there any way I can create a dynamic column or table from the above. The main requirement I have is that it needs to update on slicer selection change.

 

Thanks for your help

 

Regards

 

JustinMc

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@justinMcC,

I make the following  table using your sample data.
1.JPG2.JPG

Create the following measures in the first table.
Measure  = IF(MAX(Table1[Min_eligibe])<MAX(Table2[Column1]),"partical","full")
partical = CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[Min_eligibe]<MAX(Table2[Column1])))
full = CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[Min_eligibe]>=MAX(Table2[Column1])))

Create visuals as shown in the following screenshot.
3.JPG

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@justinMcC,

I make the following  table using your sample data.
1.JPG2.JPG

Create the following measures in the first table.
Measure  = IF(MAX(Table1[Min_eligibe])<MAX(Table2[Column1]),"partical","full")
partical = CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[Min_eligibe]<MAX(Table2[Column1])))
full = CALCULATE(COUNTROWS(Table1),FILTER(Table1,Table1[Min_eligibe]>=MAX(Table2[Column1])))

Create visuals as shown in the following screenshot.
3.JPG

Regards,
Lydia

Thanks @Anonymous

 

I used a modified version of your DAX formula. It worked great, thanks for your help - it really helped me out with customer issue

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.