This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi all,
I have been trying to add a € sign before a value, based on a slicer selection. To do this, I created a measure and used the function FORMAT(x, €#.##). However, it gives me an error.
Can somebody help?
Solved! Go to Solution.
Hi, @dashboard-1 ;
IF you want show in graph, you could create two measures ,because one measure only show one type unless use format. so please try two measures:
Dynamic Display1 =
VAR selectitem =
IF ( HASONEVALUE ( Selector[Type] ), VALUES ( Selector[Type] ), BLANK () )
RETURN
SWITCH ( selectitem, "Cost", SUM ( [Cost] ) )
Dynamic Display2 =
VAR selectitem =
IF ( HASONEVALUE ( Selector[Type] ), VALUES ( Selector[Type] ), BLANK () )
RETURN
SWITCH ( selectitem, "number", SUM ( [number] ), BLANK () )
Then change measure1 type
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @dashboard-1 ;
Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @dashboard-1 ;
IF you want show in graph, you could create two measures ,because one measure only show one type unless use format. so please try two measures:
Dynamic Display1 =
VAR selectitem =
IF ( HASONEVALUE ( Selector[Type] ), VALUES ( Selector[Type] ), BLANK () )
RETURN
SWITCH ( selectitem, "Cost", SUM ( [Cost] ) )
Dynamic Display2 =
VAR selectitem =
IF ( HASONEVALUE ( Selector[Type] ), VALUES ( Selector[Type] ), BLANK () )
RETURN
SWITCH ( selectitem, "number", SUM ( [number] ), BLANK () )
Then change measure1 type
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much! This is working 😀
Hey @dashboard-1 ,
the format itself has to be in quotes.
Try it like this:
FORMAT(x, "€#.##")
Hi,
Thanks for your reply.
I'm trying to convert to a currency when cost is selected at the slicer. The full formula is:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 7 |
| User | Count |
|---|---|
| 49 | |
| 27 | |
| 21 | |
| 20 | |
| 20 |