Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
cristianml
Post Prodigy
Post Prodigy

Remove filter using MAX function for column

Hi,

I need to solve the following measure.  I'm trying to evaluate putting 1 in all the periods that have Revenue amount else 2 into this table.

But as I use MAX for month comparisson is showing only the last month with 1 and I need to remove filters or do this in other way.

I tried with ALL and ALLSELECTED but It doesn't work

 

cristianml_0-1646458280793.png

 

 

Column =
VAR MATCH = IF(MAX('Revenue - CCI'[Month])=NWD_Table[Month] && 'Revenue - CCI'[Revenue]>0,1,2)
RETURN
CALCULATE(MATCH,ALL('00_CALENDAR'))

 

Any idea?

 

Thanks  !

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cristianml , You can not use a slicer of filter value in a column. You need to create a measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@cristianml , You can not use a slicer of filter value in a column. You need to create a measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.