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 need to create a report which procides compliance % for last week.
For this I need help to create a dynamic filter ("last promise week #" here). I am not able to use MAX as date syntax .
any help, very much appreciated!
Thanks,
If you add a Date table, you can make a calculated column like this one to identify the current week. You can then use it in your measure to filter to just that week (IsCurrentWeek =1). Or you can use it in the slicer filter.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @mahoneypat , I do have a date table in my model. However, for the report , I need the last promise week # as the end result. A promise week # can have two or more dates included .
Also, should a relationship be created with the date table you mentioned for the syntax to work?
I tried creating this syntax:
Thanks,
From the picture of your model, your date table was not obvious. From the pic in your last post, the FILTER function returns a table so can't be used in the return of your measure. You need to also do an aggregation to return a scalar result.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Do you have a week number column in your Calendar/Dates table?
Yes , "promise week" in the snapshot is the week #.
Thanks,
A Calendar/Dates table requires contiguous dates across your entire fact date range plus a little more depending on what date math you are doing. "promise week" is a fact table attribute. Required, but not sufficient. Can you show your data model?
that's just one data source in Power Query. The data model in Power BI shows how your queries (data sources) are related. It's the third icon on the left.
Hi @lbendlin ,
I am reusing an original built report. Its huge report with 20 tables, I am only 2 tables from it. please see below
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 |
---|---|
102 | |
53 | |
21 | |
13 | |
11 |