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
SwapnilBhanuse2
Frequent Visitor

Power BI Deskstop

Hi Community,
  
 I Want To Change The Format Of Dynamic Measure Selector for 2 Different Measures.

 for Ex. measure 1= currency 
      Ex. measure 2= percentage

5 REPLIES 5
pratyashasamal
Super User
Super User

Hi @SwapnilBhanuse2 ,
You can first select the measure then go Measure tools and change the format for the measure.

pratyashasamal_0-1674630192180.png

Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Actully This 2 measures in a single column 

hi @SwapnilBhanuse2 ,
These are 2 separate measures right ?
If it is using the same column in its calculation ,then also it would not cause any issue .
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Slicer Selection =
IF (
    ISCROSSFILTERED ( Selections[Slicer Selection]),
    SWITCH (
        SELECTEDVALUE ( Selections[Slicer Selection]),
        "Sales/Hour Worked", 'CBS'[Sales],______For this i want to show currency
        "Tax", 'CBS'[10% tax],______For this i want to show percentage
        "HWorked", 'CBS'[total work hours],
        "LExpenses",'CBS'[lbr exp]______For this i want to show percentage
    ),
    " "
 )

Hi @SwapnilBhanuse2 ,
You can also use this method :-

If you use DAX to create a measure for the field you are using you can wrap that in the format function, e.g.

Measure = FORMAT( SUM( Table[Sales]), $#,##0;($#,##0) )

 

The format function can take user defined formats as shown above (above is brackets for negative, comma separated dollar format.
For a bigger list of user defined function see here:

 

https://msdn.microsoft.com/en-us/library/ee634206.aspx
You can also refer to this link :-
https://radacad.com/custom-format-fields-and-measures-in-power-bi

 

Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.