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
subhashree_r
Helper I
Helper I

Dynamic Measure change with prefix change in visual

Hello all,

     I have two selections , one being sales and another being volume. If I select Sales then it should be shown as ₹ 1000 and if the selection is volume then it should show 1 kg in a bar graph .

I have created measure for each sales and volume. I have used the Selectedvalue dax to get it work. Can Anyone please guide me with a method to solve this problem. 

3 REPLIES 3
amitchandak
Super User
Super User

@subhashree_r ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
If you using a slicer to change these values. Formatting can not ve dynamic you have to do inside the measure. That might make it text
Appreciate your Kudos.

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

Hi @amitchandak 

  You have understood the problem I'am facing . The Type of the measure is being changed to text. 

 Given below is the measure that I have used :

Sales / Volume selection  = IF(SELECTEDVALUE('Sales / Volume Selection'[Selection ]) = "Sales",SUM(Sales[AMT PRIMARY NET VALUE]),[Volume])
Anonymous
Not applicable

Hi @subhashree_r

 

A bit confused,so you donnt wanna the result turned out to be a text format?What is your expected output?Can you provide some sample data with expected output for testing?

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors