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! Request now

Reply
GR83
Regular Visitor

Measure for Selected Value from Slicer with Default value from a table

I have 2 tables one is GenerateSeries(0,20,1)

Other is 

 

City                     Qty

Atlanta                5

Albany                 2

Detroit                 6

New York             12

I have a Single select City Slicer (ex. Detroit Selected) 

I have another slicer based in Geterated Series (1-20) 

I need a measure if the Geterate series slicer is selected then I need Series value else Detroit Qty which is 6   

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GR83 

 

For your question, here is the method I provided:

 

Here is the data you provided:

 

“City

vnuocmsft_0-1704444675384.png

 

“GenerateSeries

vnuocmsft_1-1704444695944.png

 

Create a measure, determine whether “GenerateSeries" slicer is selected and return the value in GenerateSeries

vnuocmsft_2-1704444712647.png

Result = 
   IF(
    ISFILTERED('GenerateSeries'[Value]),
    SELECTEDVALUE('GenerateSeries'[Value]),
    SUM('City'[Qty])
    )

 

Here is the result

vnuocmsft_3-1704444734626.png

 

vnuocmsft_4-1704444734628.png

 

Regards,

Nono Chen

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

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @GR83 

 

For your question, here is the method I provided:

 

Here is the data you provided:

 

“City

vnuocmsft_0-1704444675384.png

 

“GenerateSeries

vnuocmsft_1-1704444695944.png

 

Create a measure, determine whether “GenerateSeries" slicer is selected and return the value in GenerateSeries

vnuocmsft_2-1704444712647.png

Result = 
   IF(
    ISFILTERED('GenerateSeries'[Value]),
    SELECTEDVALUE('GenerateSeries'[Value]),
    SUM('City'[Qty])
    )

 

Here is the result

vnuocmsft_3-1704444734626.png

 

vnuocmsft_4-1704444734628.png

 

Regards,

Nono Chen

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

 

 

 

PijushRoy
Super User
Super User

Hi @GR83 

Yesterday I posted this comment for Hierarchy Slicer
Can you see the post and download the PBIX file and apply same
https://community.fabric.microsoft.com/t5/Desktop/Slicer-interact-with-each-other/m-p/3615706#M11861...

PBIX
https://drive.google.com/file/d/1f-3D3x_mx0TWFzUXwyw5TDk0bw_qAfQR/view?usp=sharing

 

If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS

 

Thanks
Pijush




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors