- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Limit Parameter slicer to be applied to a specific measure in Matrix
Hi Everyone,
I have a matrix visual with MTD and YTD values for expenses with location and account lines. I need MTD to be filtered and i want YTD to remain static, to filter the MTD value i have used a parameter and used slicer from it. How can i limit YTD value to not get affected from the slicer. I also have a relation from table A with the parameter table. The measure for YTD value is as below:
YTD =
VAR n = [EXPENSES]
VAR d = year(today())
RETURN
CALCULATE(
n,
ALLEXCEPT('Table A', 'Table A'[Date].[Year]),
'Table A'[Date].[Year] = d
)
Measure for MTD:
MTD-PARAM =
CALCULATE(
[EXPENSES],
'Table A'[Month NO] = SELECTEDVALUE('Parameter Table'[Month NO]) &&
YEAR('Table A'[Date]) = YEAR(TODAY())
)
Thanks For the help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Rabi
Try this:
YTD =
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
[EXPENSES],
REMOVEFILTERS ( 'Parameter Table' ),
YEAR('Table A'[Date]) = CurrentYear
)
Or
YTD =
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
[EXPENSES],
FILTER(
ALL('Table A'),
YEAR('Table A'[Date]) = CurrentYear
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Rabi
Try this:
YTD =
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
[EXPENSES],
REMOVEFILTERS ( 'Parameter Table' ),
YEAR('Table A'[Date]) = CurrentYear
)
Or
YTD =
VAR CurrentYear = YEAR(TODAY())
RETURN
CALCULATE(
[EXPENSES],
FILTER(
ALL('Table A'),
YEAR('Table A'[Date]) = CurrentYear
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @VahidDM ,
The first dax worked perfect as the idea was to remove filter from the parameter slicer. Thanks very much, Absolute legend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad it fixed.
Thanks

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
03-06-2024 07:49 PM | |||
07-30-2024 10:00 AM | |||
04-30-2024 04:29 PM | |||
06-13-2024 02:27 PM | |||
10-09-2023 04:38 PM |
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |