Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |