Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jnoel100
New Member

Reference or Calculate from unrelated dimension table

Hi, 

I need to reference the number of days from a calendar table to a measure. 

 

The data model looks like this

pbiscreenshot.png

Data is like this

Employee:

EmployeeTeamID
ABC1
DEF1
GHI2
JKL3


Teams

TeamIDTeam Name
1Team A
2Team B


Calendar - standard calendar table

The visual is like this
pbiscreenshot2.pngThe 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

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

= IF( NOT ISEMPTY( EMPLOYEE ), COUNTROWS( 'Calendar' ) )


Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

= 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.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.