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
Steven120
New Member

Using Filter and SelectedValue to create a table

Hello all,

I am trying to create a new table using the following but it returns a blank table. 

New Table = FILTER(Data_Validation_2,Data_Validation_2[Valid] = SELECTEDVALUE(Data_Validation_2[Valid],-1))
 
Data_Validation_2[Valid] contains three values [6,7,8]
I have a slicer with Data_Validation_2[Valid] as the Field and 6 selected. 

If I directly use 6 in the command rather than selectedvalue I get a table that only has 6 in the Valid column. 
New Table = FILTER(Data_Validation_2,Data_Validation_2[Valid] = 6)
 
To prove to myself that I am not crazy I created a new measure and added it to a Card and got the expected result 6. 
New measure = SELECTEDVALUE(Data_Validation_2[Valid],-1)
 
Any help would be greatly appreciated,
Steven
 
1 REPLY 1
amitchandak
Super User
Super User

@Steven120 , You can not use the slicer/filter value in the calculated table.

 

Only Var Table  in a measure can use that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.