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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JohannTTG
Helper I
Helper I

Always display row of a table

Hi,

I run into a problem ...

 

First, there is a Dimension-Table that holds some categories, e.g. A, B, C

With a slicer-visuals the user can select some of them.

 

There exists a relation to a Fact-table. In the Fact-table is a column with the same categories and the user selects part of the fact table using the slicer. All works pretty fine.

 

The new request and my problem:

New data are stored in the fact table and it could happen that the new data have some invalid categories (e.g. X,Y, ...)

The customer wants that these illegal entries are always displayed in the very same table visual, regardless what is selected in the slicer.

 

Example: The slicer is set to category "A", so in the table visual the user wants to see all entries that have category "A" and all entries with illegal categories (other than "A", "B", "C").

 

How to do this?

 

Any help is apprecited!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JohannTTG , Better to keep the category as an independent table and try like

 

new measure =
var _sel = allselected(category[category])
var _sel1 = allselected(Table[category])
Var _sel2 = union(_sel, except(_sel1,_sel))
return
calculate(sum(Table[value]), filter(Table, Table[category] in _sel2))

 

////////

with join

 

new measure =
var _sel = allselected(category[category])
var _sel1 = all(Table[category])
Var _sel2 = union(_sel, except(_sel1,_sel))
return
calculate(sum(Table[value]), filter(Table, Table[category] in _sel2),all(category[category]))

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

View solution in original post

2 REPLIES 2
JohannTTG
Helper I
Helper I

Bingo - that helps, thank you!

amitchandak
Super User
Super User

@JohannTTG , Better to keep the category as an independent table and try like

 

new measure =
var _sel = allselected(category[category])
var _sel1 = allselected(Table[category])
Var _sel2 = union(_sel, except(_sel1,_sel))
return
calculate(sum(Table[value]), filter(Table, Table[category] in _sel2))

 

////////

with join

 

new measure =
var _sel = allselected(category[category])
var _sel1 = all(Table[category])
Var _sel2 = union(_sel, except(_sel1,_sel))
return
calculate(sum(Table[value]), filter(Table, Table[category] in _sel2),all(category[category]))

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors