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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
GulianiG
Helper II
Helper II

Formula not working as soon as I select 2 or more values

Hi Experts,

My formula below is not working as soon as I select 2 or more values from Segment[Sub-Group] in a slicer

GulianiG_0-1674151003488.png

Please suggest, thanks

 

1 ACCEPTED SOLUTION
GregMarbais
Kudo Collector
Kudo Collector

Hey @GulianiG SelectedValue only returns a value when there's a single value in the selected column. Here's an article on it: https://dax.guide/selectedvalue/
Depending on what you're doing, you may just need to flip how you do the evaluation
Instead of the SelectedValue line you could do OR("Male" IN Segment[Sub-Group],"Female" IN Segment[Sub-Group]),
But that may depend on what you're trying to accomplish.

View solution in original post

1 REPLY 1
GregMarbais
Kudo Collector
Kudo Collector

Hey @GulianiG SelectedValue only returns a value when there's a single value in the selected column. Here's an article on it: https://dax.guide/selectedvalue/
Depending on what you're doing, you may just need to flip how you do the evaluation
Instead of the SelectedValue line you could do OR("Male" IN Segment[Sub-Group],"Female" IN Segment[Sub-Group]),
But that may depend on what you're trying to accomplish.

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.