Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Context:
My model contains date dimension table - dDate
The matrix visual has months in columns, so in default view, there are 12 columns.
The default view however, must show only one month - e.g. April.
To do that I have created calculated column in dDate table:
_isAvailable =
VAR _year = 2024
VAR _month = 4
RETURN
IF(
dDate[Year] = _year && dDate[Month Number] = _month
, 1
, 0
)
Now in matrix visual, i have changed Month column to show 1 TopN element based on _isAvailable column.
The default view shows correctly the month I want.
But now there is an issue, when I choose in month slicer, e.g. months April, May and June, the visual shows only April (because of isAvailable column).
How can I modify calculated column or create other measure which will solve the issue?
Solved! Go to Solution.
I have managed to solve the issue:
In matrix visual, you have to change the column which is used as period e.g. 'month + year', than create measure:
IF(
ISFILTERED(dDate[M. + Month Number]) //the column used as slicer - other than column used in matrix table
, 0
, MAX(dDate[_isAvailable])
)
Now in matrix visual, change filter for 'month + year' column to show 1 TopN element based on above measure.
I have managed to solve the issue:
In matrix visual, you have to change the column which is used as period e.g. 'month + year', than create measure:
IF(
ISFILTERED(dDate[M. + Month Number]) //the column used as slicer - other than column used in matrix table
, 0
, MAX(dDate[_isAvailable])
)
Now in matrix visual, change filter for 'month + year' column to show 1 TopN element based on above measure.
Have a look here to see the technique to implement.
https://gorilla.bi/power-bi/set-default-slicer-value/
Thank you for reply, but unfortunately it is not what I was looking for
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |