Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Issue with expression

Hi Community,

I'm comparing two fields using with states, but not giving any value in textbox - same expression if I use in straight table working fine with dimension InsCode.

Can you please correct me for show in textbox ?

=IF(Aggr(Only({2} InsCode), InsCode)=Aggr(Only({1} InsCode), InsCode), AVG({1} AVGSAL))

in text value should be 2804.3333, for those selections  (I'm comparing with InsCode for two states)

paulwalker_0-1613453691891.png

 

PFA,

Thanks in advance!

Labels (1)
11 Replies
paulwalker
Creator III
Creator III
Author

Hi Vegar,

Can we show salary in Measure ? Salary should be matching InsCode Salary (should be 3000 and 38000).

paulwalker_0-1613736665799.png

 

Vegar
MVP
MVP

You don't need that aggregation if you want the valius per dimension row. Try this expression:

=AVG({<InsCode=StateB::InsCode>} Salary)

Vegar_0-1613738391336.png