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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Applicable88
Impactful Individual
Impactful Individual

Filtering main table through a calculated table with slicer

Hello,

im having a factable like this with all occurences:

FailurenumberFailurecodeDate
(8888)1234L888821.06.2021
(8888)1235L888822.06.2021
(8888)1236L888823.06.2021
(8888)1237L888824.06.2021
Other IssuesL100025.06.2021
Other IssuesL110026.06.2021
Machine Failure L555527.06.2021

 

For switching the two modes where I either want to see all Failurecodes or just the filtered ones with the code called "L8888" I'm using a calculated table with following formular:

Filtered Table= SUMMARIZE(FILTER('Errortable', 'Errortable'[FailureCode] in {"L8888"}),'Errortable'[Failurenumber]
, "Filtered" , "Filtered")
The outcome is following table which is totally correct:
Filtered Failurecode
(8888)1234    L8888
(8888)1235    L8888
(8888)1236    L8888
(8888)1237    L8888

 

I'm now connecting the Filtered column with Failurenumber of my maintable in a bidirectional relationship. I also get 1:N cardinality. But when I now create a slicer "Filtered" for on and off, I'm using the same above mentioned formula to activated the filtered table, somehow in the maintable nothing changes. Since all "filtered" are activated now, shouldn't the factable also react accordingly?

 

I hope someone has an idea has an idea here.

Thank you in advance.

Best. 

 
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Applicable88 , a Calculated table will not respond to the slicer values. 

You need to create a measure and use that in visual table 

View solution in original post

I found another way, to just use the formula and put it right into the original table as a calculated column.  This way it had no problem filtering the data according to "filtered". 

Thanks

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Applicable88 , a Calculated table will not respond to the slicer values. 

You need to create a measure and use that in visual table 

I found another way, to just use the formula and put it right into the original table as a calculated column.  This way it had no problem filtering the data according to "filtered". 

Thanks

Hello @amitchandak thanks of the quick reply, but in case I want to switch between "all" and "filtered" how to to that? When the measure is in the table it returns scalar value. A measure cannot be put into the slicer only a dimension can be put in there. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.