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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pmadam
Helper II
Helper II

DAX Help

Hi Team,

 

Please help with below request.

 

I  have 3 measures and 3 dimensions as shown below.

 

Dims                                 Measure

Branch Budget                 Budget

InsideSalesName              InsideSalesBudget

    ->Inside SalesNumber

OusideSalesName         OutsideSalesBudget

   ->OutsideSalesNumber

 

So i need to create single  calculated measure 'Budget' that displays respective measure value depending on dimension picked by user in visual.

1 REPLY 1
amitchandak
Super User
Super User

@pmadam , Now if you want change both dimension(Axis/Row/Group by) and measure, You need bookamarks and button

 

Dynamically change chart axis in Power BI
bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/

 

But if only want change the axis then you need to have independent table with these three values and use a measure slicer 

 

Measure  =
var _change =selectedvalues(Table[Dimension])
return
SWITCH (
TRUE(),
_change = "Branch Budget " , [Budget ],
_change = "Inside Sales Name" , [InsideSalesBudget],
_change = "Outside Sales Budget " , [OutsideSalesBudget],
)

 

measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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