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! Request now

Reply
Cado_one
Resolver III
Resolver III

Table visual edit interaction for values to change and keep all lines while using slicer

Hi,

 

I have a simple issue but I don't find the trick neither by myself nor by reading topics.

First let's explain my situation, I have the following table visual and slicer :

Capture.PNG

In the table, tracker is a real column from a database and the other columns are measures.

The slicer's values are calculated columns.

When I select lines in the slicer, the measures in the table adapt their value and all the lines trackers not selected disappear :

Capture.PNG

My problem is that I'd like to have all the lines of the table visible and measures value impacted by the slicer's selection.

When I edit interactions for the table not being filtered by the slicer, the table remain complete but its column values are not changing.

 

If someone know a trick that could help me with that I'd be very glad to try it !

Thanks in advance,

Cado

1 ACCEPTED SOLUTION

Hi @Cado_one ,

 

The "Measure" I used means the measures of yours. You could select columns from your original table to create a new table as a slicer with SELECTCOLUMNS() function. This new table will be independent, so it will not filter your orginal table directly. Then use ALLSELECTED() function to get the range you want to compare.

 

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

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Cado_one ,

You need to create a measure like that

create a formula like

measure =
calculate(if(line[line] in allselected(line[line]), [measure] null),all(lines))

 

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

@amitchandak 

 

thank you for the response, but can you add a little more detail please ? I'm not sure to understand what the lines refer to.

Should I replace with something like that ?

measure = calculate(if(Min('Données traitées'[tracker]) in allselected('Données traitées'[tracker]), [LossElec] null),all('Données traitées'[tracker]))
And then put this measure in my table ?
 
When trying this I got an error of "null" syntax incorrect

Hi @Cado_one ,

 

You could create a new table as a slicer dimension. Then use ALLSELECTED() to get your filters and use IF() function to edit the selected results. Here is the measure for your reference.

Measure 2 =
VAR a =
    ALLSELECTED ( 'Slicer'[Column1] )
VAR b =
    ALLSELECTED ( 'Slicer'[Column2] )
RETURN
    IF (
        SELECTEDVALUE ( 'Table'[Column1] ) IN a,
        CALCULATE ( [Measure], FILTER ( 'Table', 'Table'[Column2] IN b ) ),
        [Measure]
    )

 

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

Hi @amitchandak @v-eachen-msft 

 

Thanks for the time tou take to help me. But I still don't make the match between 'Table', 'Measure' and my amount of measures and tables.

In the measure 2 @v-eachen-msft , does your [Measure] refer to @amitchandak measure in the last post or one of my measures ? And I have difficulties to see how my "new table as a slicer dimension" should be.

Sorry for lagging behind but my english is quiet bad and I'm a newbbie in Power BI

 

Thanks

Cado

Hi @Cado_one ,

 

The "Measure" I used means the measures of yours. You could select columns from your original table to create a new table as a slicer with SELECTCOLUMNS() function. This new table will be independent, so it will not filter your orginal table directly. Then use ALLSELECTED() function to get the range you want to compare.

 

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

@v-eachen-msft 

 

Thank you for your help, I finally managed by doing a copy of my data table as you said for the slicer and create a relation between the 2 "Tracker" columns. No need of a new measure.

 

Have a nice weekend !

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.

Top Solution Authors