Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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]
)
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]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |