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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.