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
lekkerbek
Helper IV
Helper IV

Single select slicer but visual should ignore it (partially)

Hi everybody,

 

I have a slicer (single select)on my page where the user can select the desired month of the year. A card visual shows the YTD value based on that slicer selection. So for example if March were chosen it shows the revenue YTD March.

 

I would like to add a table that shows the revenue for each month individually. By default it only shows the month selected. If I remove the filter by going to edit interactions, it shows the values that I want, but it shows them for the entire year (or whatever the dataset has). I would like it to stop at the month selected like in the screenshot. My date table is in the other screenshot.

 

ChatGPT couldn't help me. Hopefully one of you can 🙂Scherm­afbeelding 2024-12-19 om 09.15.15.png

 

Scherm­afbeelding 2024-12-19 om 09.13.32.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lekkerbek ,

Please update the formula of measure [Test] as below, you can find the details in the attachment.

Test = 
VAR _year =
    SELECTEDVALUE ( 'dimDatum'[Year] )
VAR _month =
    SELECTEDVALUE ( 'dimDatum (los)'[MonthOfYear] )
RETURN
    SUMX (
        FILTER (
            'fctOmzet',
            YEAR ( 'fctOmzet'[Datum] ) = VALUE ( _year )
                && MONTH ( 'fctOmzet'[Datum] ) <= VALUE ( _month )
        ),
        [Omzet X]
    )

vyiruanmsft_0-1734676668732.png

Best Regards

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @lekkerbek 

Please refer to the linked guide of Goodly, he shows very easy method to achieve the same scenario 🙂

https://www.youtube.com/watch?v=xZcO83X5K30&t=2s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
danextian
Super User
Super User

Hi @lekkerbek 

Filter from a related table will always show just the rows within the range selected. You need a disconnected table to achieve what you want.  Please see the attached pbix for details.

danextian_0-1734598584914.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks for the demo file. I tried to replicate it, but I can't get it to work. It appears to be exactly the same as your, but in my case it still shows all months. Testfile is here: Test PBIX 

Anonymous
Not applicable

Hi @lekkerbek ,

Please update the formula of measure [Test] as below, you can find the details in the attachment.

Test = 
VAR _year =
    SELECTEDVALUE ( 'dimDatum'[Year] )
VAR _month =
    SELECTEDVALUE ( 'dimDatum (los)'[MonthOfYear] )
RETURN
    SUMX (
        FILTER (
            'fctOmzet',
            YEAR ( 'fctOmzet'[Datum] ) = VALUE ( _year )
                && MONTH ( 'fctOmzet'[Datum] ) <= VALUE ( _month )
        ),
        [Omzet X]
    )

vyiruanmsft_0-1734676668732.png

Best Regards

That worked :-).

 

Thanks very much (and to all others for their suggestions also).

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.