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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
CatoD
Helper I
Helper I

Show default month if nothing is selected in month slicer

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?

1 ACCEPTED SOLUTION
CatoD
Helper I
Helper I

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.

View solution in original post

3 REPLIES 3
CatoD
Helper I
Helper I

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.

Alex87
Solution Sage
Solution Sage

Have a look here to see the technique to implement. 

https://gorilla.bi/power-bi/set-default-slicer-value/




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




Thank you for reply, but unfortunately it is not what I was looking for

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.