Forum Discussion
Comparison of First Index with the Second one
- 4 years ago
Hi GuestUser123 ,
According to your description, here's my solution.
My sample data is the same with yours.
Create a measure.
Check = IF ( MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[CustomerID] = MAX ( 'Table'[CustomerID] ) && 'Table'[Index] = 1 ), 'Table'[Payment] ) = MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[CustomerID] = MAX ( 'Table'[CustomerID] ) && 'Table'[Index] = 2 ), 'Table'[Payment] ), "Not change", "Change" )Get the expected result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
as I said before - then you can loop through the master customer table and evaluate the ROWCOUNT of the RELATEDTABLE to see if the customer has multiple indexes.
Hi JirkaZ Is there a way to use an IF Condition in this scenario?
- JirkaZ4 years ago
Solution Specialist
Yes, but you should first understand the concept and why you should normalize your model, what results would the countrows(relatedtable) give you and how to use it in your scenario.