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've got a table of sales data stored by week and I want to show this on a line chart. Sales update overnight and I only want to show on the chart sales up to the last complete week. I can't seem to get it to stop pulling the partial week sales through. I currently have this measure:
Line 3 is just clearing some other filters I have on the page. Line 4 I think clears the filters I have on tyhe numerical fical week field and then looks for values <= Line 5. All of this I think I understand, except Line 5 doesn't work.
Line 5 should be taking the selected value from the current 'Master Fiscal Calendar'[Fiscal Week] selection which is text, using that to look up to the column in the calendar table (again stored as text) and returning the week number but stored as a number this time, not as text.
The result of the selected value formula is text, and the lookup is definitelty returning a number. If I swap out the selected value for a hard typed "202047" (so text) then I get the behavour I want. Similarly, if I swap out the lookup for 202047 (hard typed as a number) I also get the behavoiur that I want. I'm just at a bit of a loss as to why I can't get this to work..
Am I missing something obvious? Or is there a better way?
Solved! Go to Solution.
Hi
Glad to hear it is sloved.
Others could learn from this thread.
Best Regards
Maggie
Hi
Glad to hear it is sloved.
Others could learn from this thread.
Best Regards
Maggie
Resolved - I wasn't sure whether to delete the original post but I've just circumvented the issuse by creating another table that just has a calculated 'max week' in it. I think the issue with the original way was something to do with trying to do a lookupvalue on a field that was to be filtered. Either way, no response needed 🙂
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |