Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Everyone!
Im very newbi in pbi and I have the following visualization
How do I put the Category text label where for example Year = 2021 and Rank = 2 in all rows of the desired column?
The expected output must be:
Year | Rank | Channel - MMM Optimizer | 301_Vol_Value | Desired Channel Measure |
2019 | 2 | Social Media | 2.30% | Display |
2020 | 2 | Social Media | 3.10% | Display |
2021 | 2 | Display | 1.90% | Display |
2022 | 2 | Social Media | 1.60% | Display |
In 2022 for example, should be Social Media in all rows
So far I've done this with no success
Thanks in advance!
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please try something like below.
Desired Channel Measure =
VAR _rankselect =
SELECTEDVALUE ( Data[Rank] )
VAR _yearselect =
SELECTEDVALUE ( 'Calendar'[Year] )
RETURN
MAXX (
FILTER ( ALL ( Data ), Data[Rank] = _rankselect && Data[Year] = _yearselect ),
Data[Channel - MMM Optimizer]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
I am not sure how your datamodel looks like, but please try something like below.
Desired Channel Measure =
VAR _rankselect =
SELECTEDVALUE ( Data[Rank] )
VAR _yearselect =
SELECTEDVALUE ( 'Calendar'[Year] )
RETURN
MAXX (
FILTER ( ALL ( Data ), Data[Rank] = _rankselect && Data[Year] = _yearselect ),
Data[Channel - MMM Optimizer]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |