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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.