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.
I am trying to dynamically calculate whether each store has been opened for more than 365 days. Due to DirectQuery connection we cannot create calculated columns. So we're left to do this in a measure.
Not sure if this is even possible but here is my attempt:
_test = VAR MinDateSelected = FIRSTDATE ( 'Time'[Date] ) VAR DateDiff = IF ( MIN ( Stores[DateOpened] ) > MinDateSelected, -1, DATEDIFF ( MIN ( Stores[DateOpened] ), MinDateSelected, DAY ) ) VAR SameStoreLogic = IF ( ABS ( DateDiff ) > 365, "Y", "N" ) RETURN SameStoreLogic
Problem is, if I want to aggregate current year stores for only stores that meet the same store logic, I am not able to use this measure as a filter.
Solved! Go to Solution.
@Anonymous ,
FilterExpression in FILTER is a boolean (True/False) expression.
@Anonymous ,
FilterExpression in FILTER is a boolean (True/False) expression.
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 |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |