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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
thanhloan_vee
New Member

Dynamic Page navigation using string from MDX measure

Hi all,

 

Currently my Power BI report is connected to OLAP database.
What I want is to create a navigate button, in which the destination will be dynamic based on the user access rights (I have already had the file maintained the returned string for each user)
For example, I have user A and user B.
The measure will be: if(user = User A, 'Budget A', 'Budget B') and it'll returns the string = page name, so it can navigate to that page.

With DAX query, it works well. But with MDX, I can't add the measure to the 'fx' (conditional formatting, i guess?)

Is there any ideas to implement it or why I can't add my measures ??
Thank you in advance

thanhloan_vee_0-1722251182508.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @thanhloan_vee ,

 

As far as I know, Power BI support you to use dax code to creates measures.

Refering to this offical blog, I think Power BI doesn't support us to create measures by MDX.

vrzhoumsft_0-1722318887763.png

For reference: Building Measures in MDX | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

Thanks for your reply.

I know that from the Power BI tool itself only allows to use Dax code.
But in my situation, I connect to SQL Server Analysis Service (which is OLAP, as I mentioned above) and Power BI is now a tool to visualization, not build the report.
It's just kinda weird that I can't add the measure to the 'fx' function. No detail error message -.-

thanhloan_vee_0-1722320857830.png

 

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.