Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I created a calculated measure "YTD" considering "Application_value" column and created a table visual.
The table visual contains Application names and the created measure "YTD". The created mesure is displaying values in decimals (XXX.00) format.
But, different applications names have different valuetypes such as $, %, ratio. So i need to display the values accordingly for "YTD".
I tried writing an IF statement in the filter for YTD measure, but i am not able to convert the decimals to any other datatypes. is there a way to do it?
Solved! Go to Solution.
Hi @Anonymous,
The file seems gone. Please refer to a demo below. Please also refer to the custom formats.
Demo = VAR TotalActualValue = COUNT ( 'Table1'[Column1] ) RETURN IF ( MIN ( 'Table1'[Column1] ) = "a", FORMAT ( TotalActualValue, "$#,##0.00" ), FORMAT ( TotalActualValue, "0.00%" ) )
Best Regards,
Dale
@Anonymous you have to use format function with if condition to get respective format.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous is it possible for you to share pbix file with sample data? Remove sensitive information before sending it over.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I dont see any attachements icon to send the Pbix file. ANy other way?
you can share thru onedrive/googledrive/dropbox etc
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @Anonymous,
The file seems gone. Please refer to a demo below. Please also refer to the custom formats.
Demo = VAR TotalActualValue = COUNT ( 'Table1'[Column1] ) RETURN IF ( MIN ( 'Table1'[Column1] ) = "a", FORMAT ( TotalActualValue, "$#,##0.00" ), FORMAT ( TotalActualValue, "0.00%" ) )
Best Regards,
Dale
User | Count |
---|---|
123 | |
76 | |
63 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |