Forum Discussion
Merge measure for text display with dynamic visuals
Hi all,
following issue:
I can change what`s displayed in my visual via a slicer (Cont of Documents, Euro Value, Local Value).
I am now required to display what Unit is used but in the visual itself! So I can't just make a card somewhere in the page where I display it, is has to be displayed in the visual itself (so it doesn't disappear when you apply Focus mode onto a visual).
I tried it using the following function:
12 Replies
- amitchandak
Super User
Anonymous , Please follow the approch of measure slicer and change your selection based on that.
refer
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern- AnonymousNot applicable
Dear unfortunately that isn't what I'm looking for...
To be precise I already implemented that kind of slicers (modified to match my needs) and they work just fine.
I can't insert pictures here for whatever reason so I'll try describe my issue as detailed as possible:
Like said I've already implemented that feature in my pie charts and it works. Therefore I used the following code:
"
Amount Sales Docs& Net Value =
SWITCH(TRUE(),
VALUES('Measure Dimensions'[Measure])= "Count", [C Amount of Sales Orders],
VALUES('Measure Dimensions'[Measure])= "Local Currency", [LC Net Value],
Values('Measure Dimensions'[Measure])= "Euro Value", [€ Net Value],
BLANK())"
However, I need the same pie chart with the one difference of it having a small box on the bottom left corner that says: "Displayed Unit: Pieces of/Euro/[Local Currency".
I've already made a measure that does this and tested it in a card. So when the slicer is on "Euro" It says "Euro", when its on "Count" it says "Pieces of" etc. I called the measure "Unit display".
Now, I somehow need to merge that measure "Unit Display" with the measure "Amount of Sales Docs. and Net Value", so that it tells me the Unit in my pie chart. I can't just put the box over the visual, cause if some looks at it in "Focus mode" then, it will disappear.
I tried achieving my goal using the measure:
"Amount Sales Docs& Net Value =
SWITCH(TRUE(),
VALUES('Measure Dimensions'[Measure])= "Count", CONCATENATE([Unit Display],[C Amount of Sales Orders]),
VALUES('Measure Dimensions'[Measure])= "Local Currency", CONCATENATE([Unit Display], [LC Net Value]),
Values('Measure Dimensions'[Measure])= "Euro Value", CONCATENATE([Unit Display],[€ Net Value]),
BLANK())"
but that didn't work and now I'm trying to overcome that hurden...- AnonymousNot applicable