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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Yu_KK3128
New Member

FILTER with SELECTEDVALUE using Slicer

Hello,

 

FILTER using SECETEDVALUE() and visual Slicer dosen't work, perhaps I misunderstand something but my struggling goes for nothing...

Examples are below :

201028-01.PNG

TABLE 1 has the columns ["ERROR", "MODEL", "SCORE"], and the measure named ["SELECTEDVALUE"] (showed by card) calculeted by

SELECTEDMODEL = SELECTEDVALUE(TABLE1[MODEL])

This measure varies depends on the slicer (looks working properly).

 

Then, I make TABLE2 with

TABLE2 = FILTER(TABLE1, TABLE1[MODEL]=CALCULATE([SELECTEDMODEL], ALLEXCEPT('TABLE1', TABLE1[MODEL])))

 

I want both SELECTEDMODEL(measure) and TABLE2 to change depends on the slicer, but TABLE2 won't change (show all rows of TABLE1)......

 

I try ALL, ALLSELECTED, but they also dosen't work.

 

Actually I want to make the difference of SCORE between TABLE1(filterd) and TABLE2 and show barchart of the difference.

How can I change the DAX or anythyng else??

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Yu_KK3128 , You can not use the slicer filter in new table creation.

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Yu_KK3128 , You can not use the slicer filter in new table creation.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.