Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
I need to visualize data in a table form based on multiple conditions.
I already have a master data table where all values are vaiable .
Condition:
Only those Entities must show which were purple in exact previous year.
Create Tble for each year(This can be handled by filtering Year Column)
Any help would be appriciated.I tired using calculate but It doesnt seem to work with String values as it needs and aggregate function.
Hi @Anonymous
Create a calculated column
has purple =
CALCULATE (
COUNT ( 'Table'[Color] ),
FILTER (
ALLEXCEPT (
'Table',
'Table'[Entity]
),
'Table'[Year]
= EARLIER ( 'Table'[Year] ) - 1
&& 'Table'[Color] = "Purple"
)
)
Then create a measure
only show color = IF(MAX([has purple])<>BLANK(),MAX([Color]))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |