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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
GAURAVG
Helper I
Helper I

Slicer not affecting measure

Hello All,

I have a sample data of table below:

I want to create two measures:Assessment_1,Assessment_2.

Assessment 1 gives the values of assesment column based on selection in slicer1(PI).

Assessment 2 gives the values of assesment column based on selection in slicer2(PI).

I finlly want a table with LEVEL,NAME,ASSESSMENT1,ASSESMENT2 and Diff(Assessment1-Assessment2).

I crate separate measures for each,based on slicer..but the problem is the second measue gets affected by selection of slicer1 value.

TABLE1:

LEVELNAMEPIASSESSMENT
L1aa110
L1bb220
L1cc350
L2df112
L2gg215
L3hj115
L3rr212
L3ty350

 

My final result should be, for example if slicer 1 PI=2 and Slicer2 PI=3.

LEVELAssesment_Slicer1(PI=2)Assessment_Slicer2(PI=3)
L12050
L215null
L31250

 

Any help?

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Rather than using the PI column in the slicers, create 2 new tables like

Slicer 1 = ALLNOBLANKROW('Table'[PI])

Slicer 2 = ALLNOBLANKROW('Table'[PI])

Don't link these to the main table, just use them on the slicers.

You could then create measures like

Assessment 1 = CALCULATE( SUM('Table'[Assessment]), TREATAS( VALUES('Slicer 1'[PI]), 'Table'[PI]))

Assessment 2 = CALCULATE( SUM('Table'[Assessment]), TREATAS( VALUES('Slicer 2'[PI]), 'Table'[PI]))

View solution in original post

2 REPLIES 2
GAURAVG
Helper I
Helper I

Works perfectly. One part to be added is, you also need to remove interaction between the slicers to get the correct values.

Thanks a lot!!

johnt75
Super User
Super User

Rather than using the PI column in the slicers, create 2 new tables like

Slicer 1 = ALLNOBLANKROW('Table'[PI])

Slicer 2 = ALLNOBLANKROW('Table'[PI])

Don't link these to the main table, just use them on the slicers.

You could then create measures like

Assessment 1 = CALCULATE( SUM('Table'[Assessment]), TREATAS( VALUES('Slicer 1'[PI]), 'Table'[PI]))

Assessment 2 = CALCULATE( SUM('Table'[Assessment]), TREATAS( VALUES('Slicer 2'[PI]), 'Table'[PI]))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.