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
Anonymous
Not applicable

Dynamically change of x-axis using another column

Hello Everyone,

 

I have following metrics,

 

Untitled.png

 

Please note that I have metric dimensions which needs to plotted as monthly, yearly, quarterly. 

 

I also have date dimension. 

 

ISMS (fact_table) which contains information of both dimension in it. 

 

Output: If I slice metric name appropriate chart should plot yearly for some metrics, and plot monthly for some metrics, and etc.

 

Let me know can I achieve this,

 

Thanks

3 REPLIES 3
Anonymous
Not applicable

Another query is that, Let me know how to put default period as Monthly. 

 

Please note that my unpivoted columns has Metric name(Col1), Freq(col2), Period(col3).

 

col2 has monthly, quarterly, annual

col3 has names of month like Jan, Feb, Q1, 2021 etc.

 

Output: If the filter is not selected it needs to show monthly (by default). 

 

From here I tried to use following DAX,

IF(ISFILTERED('Dummy'[Metric name]),Dummy[Period],FILTER(Dummy,Dummy[Freq]="Monthly"))
 
It is not working.
Please note that If I filter metric name appropriately axis (either monthly, annual, quarterly) is printing. But by default I want to show default columns as monthly instead of showing all period as mentioned below.
 
Untitled2.png
 
Thanks a lot.
Anonymous
Not applicable

@amitchandak , Thanks ...Unpivot has worked. Here I cannot do bookmark, because I am using 2 different dimensions altogether.

amitchandak
Super User
Super User

@Anonymous , there few ways to change axis.  Bookmarks, Unpivot the data. In Direct query - Dynamic M parameters

 

Dynamically change chart axis in Power BI
bookmark -https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.