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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

how to change measure value based on selected slicer

Hi, 

 

I have already made my Measures but i need it to change dynamically based on a  slicer.

 

This are al the calculations.

 

Total Amount LastMinutes = CALCULATE(COUNT(lastMinutes[Id]));
 
Total Amount Taken = COUNTAX(FILTER(lastMinute_waitList, lastMinute_waitList[Taken]=TRUE()), [Taken]) + 0;
 
Total expired LastMinutes = CALCULATE(COUNT(lastMinutes[Id]), FILTER(lastMinutes, lastMinutes[StartsAt] < UTCNOW())) - [Total Amount Taken] + 0;
 
Total open appoitments = CALCULATE(COUNT(lastMinutes[Id]), FILTER(lastMinutes, lastMinutes[StartsAt] > UTCNOW())) + 0;
 
this is my slicer.
 
wannes_0-1666358675710.png

 

what needs to happen is that values on dashboard need to change based on what i select.

 

company names are coming from the companies table

 

i tried everything but nothing wont change.

 

Do i soomething wrong.

pls help me out! 😞

1 ACCEPTED SOLUTION

So you are trying to filter the tables lastMinutes and lastMinute_waitList with a field from the companies table. However, as you can see the below picture, the relationship marked at red doesn't allow the filter to go to the desired tables...

JorgePinho_0-1666369203173.png

 

View solution in original post

6 REPLIES 6
JorgePinho
Solution Sage
Solution Sage

Can you show us your data model? Looks like the tables are not connected

Anonymous
Not applicable

From which table is the slicer field?

Anonymous
Not applicable

companies @JorgePinho 

 

So you are trying to filter the tables lastMinutes and lastMinute_waitList with a field from the companies table. However, as you can see the below picture, the relationship marked at red doesn't allow the filter to go to the desired tables...

JorgePinho_0-1666369203173.png

 

Anonymous
Not applicable

oke thank you i changed all the direction what where needed and now everything works thanks for your help you are a power bi hero

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors