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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Conditional measure

Hello

 

I have a Measure like:

Measure=MAX([Value])

 

For the data:

Product,Value,Date

A, 1, Date1

B, 2, Date1

A, 3, Date1

 

I want for every date, when Product=A to return MAX([Value]) and when Product=B to return MAX(([Value])/100

 

However, when I try to create a Measure like this and use IF, it does not offer me to use a Column but only other Measures. Any idea?

 

Thanks!

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Try the following formula. Also attached a workspace.

 

Column = If(Sheet1[Product] = "A",CALCULATE (
    MAX ( Sheet1[Value]),
    ALLEXCEPT ( Sheet1, Sheet1[Date] )
),
CALCULATE (
    MAX ( Sheet1[Value]),
    ALLEXCEPT ( Sheet1, Sheet1[Date] )
) /100
)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Could you tell me if your problem has been solved by @themistoklis 's suggestion? If it is, kindly Accept it as the solution to make this thread closed. More people will benefit from it. Or you are still confused about it, please show me your expected output.

 

Best Regards,
Eyelyn Qin

themistoklis
Community Champion
Community Champion

@Anonymous 

 

Try the following formula. Also attached a workspace.

 

Column = If(Sheet1[Product] = "A",CALCULATE (
    MAX ( Sheet1[Value]),
    ALLEXCEPT ( Sheet1, Sheet1[Date] )
),
CALCULATE (
    MAX ( Sheet1[Value]),
    ALLEXCEPT ( Sheet1, Sheet1[Date] )
) /100
)

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.