Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I need to reference the number of days from a calendar table to a measure.
The data model looks like this
Data is like this
Employee:
| Employee | TeamID |
| ABC | 1 |
| DEF | 1 |
| GHI | 2 |
| JKL | 3 |
Teams
| TeamID | Team Name |
| 1 | Team A |
| 2 | Team B |
Calendar - standard calendar table
The visual is like thisThe value in the Matrix is a simple day count, and the matrix table is ignoring the "Team Name" slicer.
DayCount = CALCULATE(COUNTA('Calendar'[Date]))
I simplified it a bit but was really looking to reference the Calendar table for further calculations.
I understand that since the employee table and calendar table have no direct relation, it is repeating the values. But, is it possible to filter using the selected values from the Team slicer going to the matrix? So, the matrix would only show, Employees from Team A, or whichever is selected from the Team Name Slicer
Many thanks
Solved! Go to Solution.
= IF( NOT ISEMPTY( EMPLOYEE ), COUNTROWS( 'Calendar' ) )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
= IF( NOT ISEMPTY( EMPLOYEE ), COUNTROWS( 'Calendar' ) )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thank you that worked! It took me almost a whole day, searching and figuring out solutions, It looks so simple in hindsight.
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |