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
Jtischler
Helper I
Helper I

Card Value not changing based on slicer selection

Hoping @amitchandak may be able to help!

 

I have a card that should reflect a unique count of users in table Facts1.  I have a bridgetable 'Region' with 1 to many to Facts1 and Facts 2.  Facts2 relates to Facts 1 with 1 to Many Unique ID.

 

Requirement - Region Slicer should change the user count from Facts1 based on region selected.

 

I have set up a measure to collect slicer value as well as another to attribute '1' to region selected in Facts 1 and used as visual filter

 

In table view this works perfectly, so I know formulas/measures are right.  However when I switch to card view, the number displayed does not change at all? 

 

What am I missing?

 

Measure 1:  

SlcRegion = SELECTEDVALUE('Region Main'[Region])
 
Measure 2:
SelRegion =
var _sel = [SlcRegion]
var _Reg = MAX('New Dashboard'[Region])
Return
If(CONTAINSSTRING(_Reg,_sel),1,0)
 
Jtischler_0-1680190791335.pngJtischler_1-1680190818151.png

 

 

 

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @Jtischler ,

You can create a measure as below and put this new measure onto the visual to replace the measure [SelRegion] onto the card visual. Please find the details in the attachment.

 

Measure = SUMX ( VALUES ( 'New Dashboard'[User unique ID] ), [SelRegion] )

vyiruanmsft_0-1681197329592.png

Best Regards

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

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

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.