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 All,
I want to check the searches trend of every product in according to the same day of the week last week.
I have written the next measure:
Searches Trend = DIVIDE([Total Searches],CALCULATE([Total Searches],DATEADD('Extensions data'[Date],-7,DAY)))
My data is written in a way which if there are no searches at a particular day, there is no row. I can't change that.
So, when I try to create a table, the smaller product might not have a row on the same day last week so I get this error:
How can I overcome this error?
I prefer to get a 0 on the trend.
Thanks
Hi @barlevitzky
Since i don't konw how the measure [Total Searches] gets and what your data displays, I can't reproduce this issue.
For my data which some values have no row on the same day last week within the current table, i create a measure like this and it works
Measure 1 = VAR sevendaysago = CALCULATE ( SUM ( Table13[search] ), FILTER ( ALL ( Table13 ), DAY ( Table13[Date] ) = DAY ( MAX ( Table13[Date] ) ) - 7 ) ) RETURN IF ( sevendaysago = BLANK (), 0, DIVIDE ( [Total Searches], sevendaysago ) )
Best Regards
Maggie
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 |