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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ksab23
Helper I
Helper I

Calendar connected to several date columns in dataset

Hi all, 

I cannot figure out how to make calendar slicer work in this scenario. I want to connect complete calendar to dataset with several calendar columns.

This is my dummy dataset, where '1' stands for program completion, date is completion date. Except for 'user', all are calculated columns taken from core dataset. 

userprogram 1 program 1 date program 2 program 2 date program 3 program 3 date 
a11/1/202411/1/202411/1/2024
b11/2/202411/2/2024  
c11/3/202411/3/202411/3/2024
d  11/4/202411/3/2024
e  11/5/2024  
f    11/5/2024


Now, I wanted to connect a calendar dataset that is complete calendar (not just days users completed programs). But I cannot seem to make it work even if I connect the calendar to all 'date' columns. It seems to do something but I always get the total count wrong.

Do you guys have any idea on how to make this work? Thanks a lot!

1 ACCEPTED SOLUTION

Hi, I found a solution in the meantime! Tutorial on youtube but it basically uses 'userelationship' function and it works like a charm.

View solution in original post

3 REPLIES 3
v-xuxinyi-msft
Community Support
Community Support

Hi @ksab23 

If I understand correctly, you are trying to filter the table by the calendar table.

 

Perhaps the following will help.

 

The following operations are performed in Power Query.

 

1. Unpivot Columns by selecting the three columns shown in the figure

vxuxinyimsft_0-1712294873770.png

 

2. Do this again, selecting the three columns shown for Unpivot Columns

vxuxinyimsft_1-1712295194131.png

 

vxuxinyimsft_2-1712295236260.png

 

3. To do some organizing, I deleted the "Attribute.1" column and renamed some columns.

vxuxinyimsft_3-1712295359290.png

 

Close & Apply

vxuxinyimsft_4-1712295392987.png

 

My calendar table

vxuxinyimsft_5-1712295449051.png

 

Result:

vxuxinyimsft_6-1712295482563.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks! 

This would be a great solution, however, my columns are calculated ones, and unless I am missing something I cannot edit them in power query no?

I have to get data to my user list dataset because the program completion dataset contains only users who completed specific program, not those who didn't. So basically 'user' (user list) is the core data and I am pulling information from several other 'completion lists' to get calculated columns.




Hi, I found a solution in the meantime! Tutorial on youtube but it basically uses 'userelationship' function and it works like a charm.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.