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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PatrickGreen
Frequent Visitor

Default DAX Parameter Values

Hi! Are there options currently to set default values for DAX parameters? 

1 ACCEPTED SOLUTION

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @PatrickGreen ,

If I understand correctly, when the slicer selects "Month", create a bookmark. Then insert a button and bind the button to the previous bookmark. For details, please refer to the following article

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

 

Best Regards,
Wenbin Zhou

View solution in original post

4 REPLIES 4
PatrickGreen
Frequent Visitor

Hi @lbendlin ! I have a parameter in DAX of this formula:

date_aggregation_parameter = {
    ("Day", NAMEOF(DateTable[Date]), 0),
    ("Week", NAMEOF(DateTable[Week]), 1),
    ("Month", NAMEOF(DateTable[Month Year]), 2),
    ("Quarter", NAMEOF(DateTable[Quarter Year]), 3),
    ("Year", NAMEOF(DateTable[Year]), 4)
}

I added it in the sheet as a slicer, where people can select the kind of "date aggregation" they want. I want to set monthly as default when a button is clicked. I am planning to do the same as well for another parameter containing text fields. Do you think this is possible?

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @PatrickGreen ,

If I understand correctly, when the slicer selects "Month", create a bookmark. Then insert a button and bind the button to the previous bookmark. For details, please refer to the following article

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn

 

Best Regards,
Wenbin Zhou

Hi @v-zhouwen-msft ! Thanks! This could work like a filter view for me.

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.