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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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