The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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]
)
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |