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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Exclude columns from slicer

Hi everyone, 

 

I'm trynig to exclude some columns from a slicer.

In my slicer, I put the months of the year and in my report, some data for my company. I want some of them to be affected by the slicer ("volume 24" and "VRD H acc 24", but I also want some of them to stay static ("stocks volume 24" and "valeur 24 stocks").

luciebaize_0-1718029376395.png

Most of these columns are measures.

 

Is it possible ? Can someone help me please ? 🙂

 

Thanks !!!

2 ACCEPTED SOLUTIONS

was a refuse from an example, you have to remove it.
How is calculated Stock 24?
Can you pos the relation of the table?

 



Luca D'Elicio

LinkedIn Profile

View solution in original post

Arul
Super User
Super User

@Anonymous ,

 

stocks volume 24 Ignore Month = 
CALCULATE(
    [stocks volume 24],
    ALL('Date'[Month]))
valeur 24 stocks Ignore Month = 
CALCULATE(
    [valeur 24 stocks],
    ALL('Date'[Month]))

 

If you don't have a separate date dimension table, then replace 'Date' with your actual table name where the month slicer values are being pulled from.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

9 REPLIES 9
lucadelicio
Super User
Super User

You have some problem on the model.

The fact table will be only one with the date as column

2023
UNION
2024

Column1 - Col2 - Col3 - DateColumn

1. Add a date column 01/01/2023 on the 2023 table

2. Add a date column 01/01/2024 on the 2024 table
3. Append your table to a fact table to use in the model

 

The relationship will be only SINGLE WAY and not BOTH if is not strictly necessary.

In most case it will be 1 to many relationship.
If you mantain BOTH when you filter something the propagation it will be on both the table of the relationship. Remove the inactive relationship if you don't use it.



Luca D'Elicio

LinkedIn Profile
Anonymous
Not applicable

It does not work if I do not put the both way relationships, all the date are the same for the different rows.

 

I added the date column in 2023 and 2024, my relationship are based on the item number

 

luciebaize_0-1718091494920.png

 

Arul
Super User
Super User

@Anonymous ,

 

stocks volume 24 Ignore Month = 
CALCULATE(
    [stocks volume 24],
    ALL('Date'[Month]))
valeur 24 stocks Ignore Month = 
CALCULATE(
    [valeur 24 stocks],
    ALL('Date'[Month]))

 

If you don't have a separate date dimension table, then replace 'Date' with your actual table name where the month slicer values are being pulled from.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Anonymous
Not applicable

I tried it, as you can see in my previous comments, but it doesn't work 😞 

Anonymous
Not applicable

Thank you, I will try it !

In your example, you add Customer[Continent] as an example, I'm not sure what I should put in my case ? 

was a refuse from an example, you have to remove it.
How is calculated Stock 24?
Can you pos the relation of the table?

 



Luca D'Elicio

LinkedIn Profile
lucadelicio
Super User
Super User

Hi @Anonymous 
you can write the measure using all the values of the date table that is connected with the fact table.
Somenthing like this:

UsingAllValues=
CALCULATE (
    [stocks volume 24],
    ALL ( Date ),
    VALUES ( Customer[Continent] )
)



Luca D'Elicio

LinkedIn Profile
Anonymous
Not applicable

luciebaize_0-1718030842432.png

 

My posting date is in the table CINOCO (so I use it for my slicer), this table is also used for the data of "Volume 24" and "VRD H ACC 24". 

The data is linked to the tables 2024 and 2023 by a unique item nummer. In the table 2024 you can find the data for stocks volume 24

 

Hope it is clear 🙂 and a big thank you for your help

Anonymous
Not applicable

luciebaize_0-1718030446286.png

I tried it without the "VALUES" part, and it doesn't work, as it shows the same amount for "Mesure" and "Stocks VOL 24"

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.