Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am looking to show total hours for the last three months for a specific department.
I have matrix visual that totals hrs over the splicer date range.
I have hrs values that I need to display on the visual outside the splicer dates.
I have created a Auto Calendar date table (make as date table) and set up a relationship between the Calendar Date table to a start date on my primary hrs value table. Both date columns are set to DATE:dd/mm/yyyy
Using the measure below does not filter the values for the previous month.
The formula for a standard table is not filtering by the date correctly. The totals should be 15 and 20hrs
Solved! Go to Solution.
Hi @DuskyLeaf,
It seems like you are working with direct query connection mode tables, I'd like to suggest you use date function to manually define the filter range instead of use time intelligence functions: (time intelligence functions are based on the hidden calendar table, direct query connection mode will affect it)
previous Month =
VAR currDate =
MAX ( 'sCALENDAR'[Date] )
RETURN
CALCULATE (
SUM ( 'msnfp_participationschedule'[Time Worked] ),
FILTER (
ALLSELECTED ( 'msnfp_participationschedule' ),
[Date]
>= DATE ( YEAR ( currDate ), MONTH ( currDate ) - 1, DAY ( currDate ) )
&& [Date] <= currDate
)
)
Regards,
Xiaoxin Sheng
Hi @DuskyLeaf,
It seems like you are working with direct query connection mode tables, I'd like to suggest you use date function to manually define the filter range instead of use time intelligence functions: (time intelligence functions are based on the hidden calendar table, direct query connection mode will affect it)
previous Month =
VAR currDate =
MAX ( 'sCALENDAR'[Date] )
RETURN
CALCULATE (
SUM ( 'msnfp_participationschedule'[Time Worked] ),
FILTER (
ALLSELECTED ( 'msnfp_participationschedule' ),
[Date]
>= DATE ( YEAR ( currDate ), MONTH ( currDate ) - 1, DAY ( currDate ) )
&& [Date] <= currDate
)
)
Regards,
Xiaoxin Sheng
... the tables are DirectQuery except sCalendar Table which is import
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 69 | |
| 32 | |
| 32 | |
| 32 |