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

Join 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

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

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.