Forum Discussion
Filter a field parameter by another field parameter
Hello,
I have created slicers that adjust the format to the user's preference. They can select the general format and the number of decimals. It works really well (despite the annoyance of having to specify right alignment for every column in a view).
This is the table with the various formats.
Each measure has one as a number, e.g. Translated1, and one formatted, e.g. f_Translated1.
This is the pattern for the formatted measures:
f_Translated1 = IF([Translated1], FORMAT([Translated1],'SelectorFormat'[formater]))
And, this is the final format
var a = IF.EAGER([svDecimals]>0,"." & REPT("0",[svDecimals]))
return SUBSTITUTE('SelectorFormat'[svFormat],"x",a)
The issue is when a graphic, namely waterfalls, linked to a data table. I can either use a number measure or a formatted measure, not both, and formatted measures do not work with graphics. I can use a divisor, but then I cannot control the number of decimals.
It works with a normal measure, which is number based, but fails with a formatted measure because it is a string. Is there a way to create a 'field parameter' that either has two measure columns from which I could drop on the
KPMTGG you need to use calculation groups where you can define dynamic formatting and still use it in the visuals. There are a lot of videos on dynamic format strings using calculation group, just google it. As a matter of fact, I'm sharing one video tomorrow on my channel which has a part of a similar question.
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
1 Reply
- parry2k
Super User
KPMTGG you need to use calculation groups where you can define dynamic formatting and still use it in the visuals. There are a lot of videos on dynamic format strings using calculation group, just google it. As a matter of fact, I'm sharing one video tomorrow on my channel which has a part of a similar question.
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.