Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a dataset simplified as below, and have a requirement to highlight repetitive amounts, per category per store.
How Can I do that with DAX please ?
Your help is very appreciated,
Thanks in advance
Solved! Go to Solution.
Repeated ? : =
VAR currentvaluetotal = [Value Total :]
VAR currentmonth =
MAX ( Months[Index] )
VAR newtable =
FILTER (
ALL ( Sales ),
Sales[Store] = MAX ( Stores[Store] )
&& Sales[Category] = MAX ( Categories[Category] )
&& [Value Total :] = currentvaluetotal
&& RELATED ( Months[Index] ) < currentmonth
)
RETURN
IF ( ISFILTERED ( Months[Index] ), IF ( COUNTROWS ( newtable ) >= 1, 1, 0 ) )
https://www.dropbox.com/s/4ybuju3e2nvpuko/mazer.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Repeated ? : =
VAR currentvaluetotal = [Value Total :]
VAR currentmonth =
MAX ( Months[Index] )
VAR newtable =
FILTER (
ALL ( Sales ),
Sales[Store] = MAX ( Stores[Store] )
&& Sales[Category] = MAX ( Categories[Category] )
&& [Value Total :] = currentvaluetotal
&& RELATED ( Months[Index] ) < currentmonth
)
RETURN
IF ( ISFILTERED ( Months[Index] ), IF ( COUNTROWS ( newtable ) >= 1, 1, 0 ) )
https://www.dropbox.com/s/4ybuju3e2nvpuko/mazer.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
85 | |
77 | |
66 |
User | Count |
---|---|
120 | |
112 | |
94 | |
84 | |
75 |