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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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