web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Best Approach to Using...
Power Apps
Answered

Best Approach to Using Calendar Table

(1) ShareShare
ReportReport
Posted on by

I have built a Canvas App with Dataverse back-end.

 

I am using drop-down filters from my Calendar table, e.g. Year, Quarter, Month, to filter a gallery of items, where the data source\fact table only has the date field.

 

It is not clear to me how to "connect", or create a "Relationship" with the Date column of my Calendar table and the Date column of my Facts table, which in my mind would be a straight-forward step.

 

And then further how to use that Relationship to "Filter" the Items in my gallery, based on the drop-down selection(s).

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @kent-culpepper,

     

    Creating a relationship may be an option but often the table primary column (string) is used which isn't much help here.

     

    Filtering gallery items is possible using code similar to the following in the gallery items property. Feel free to change the code as required, for example to set data collection and field names:

    Filter(colMyData,
     MyDate = cmbDate.Selected.MyDateColumn
    )

     

    Filter function reference: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • kent-culpepper Profile Picture
    on at

    Hi,

     

    Thanks for your response.

     

    So, there is no way to create a relationship between a Calendar table (Date column) and a Facts table (Date column)? This seems to me one of the more fundamental joins.

     

    Re: your filtering example, yes, I can filter based on date, easy enough. But the objective is to filter based on other dimensions of the Calendar table, e.g. Year, Quarter, Month.

     

    Kent

  • Verified answer
    kent-culpepper Profile Picture
    on at

    *- Classic "Joins" dont exist @ Dataverse; Generally, Dataverse is architected\designed such that it creates the "Join" upon creation of a new record, where the Table Relationship exists; my question was effectively, how do you retroactively create the "Join", i believe there are multiple ways to do this, by my steps were the following;

     

    1- Create a Relationship @ Fact Table to Calendar Table (named Calendar)
    2- Go to each Table and <Edit Data in Excel>
    3- Use a VLookup to populate the Fact Table\Calendar Lookup column with the Calendar table\Calendar column (Id)
    4- Publish (from Excel Add-In) the Fact Table
    5- You can now reference the Calendar table @ Gallery, e.g. Calendar.Year in Dropdown, etc. @ Fx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard