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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
anabianco09
Helper II
Helper II

How to show two events that have different reference dates on only one calendar view?

Hi all, 

I am trying to display two set of events, with different reference dates, on only one calendar view, using the visual by MAQ Software. 

THe events are in different tables, and they are connected by an ID. 

Is it possible ?

1 ACCEPTED SOLUTION
AmiraBedh
Resident Rockstar
Resident Rockstar

You can merge the two tables into one, adding an extra column that specifies which original table each event came from. Merge and specify the ID to join them on. This will add a new column that specifies which table each row originally belonged to.

Then you need to create the relations between the tables.

And then you measure can be like : 

 

EventFlag = 
IF(
    ISBLANK(Table1[EventDate]),
    IF(ISBLANK(Table2[EventDate]), "No Event", "Event in Table2"),
    "Event in Table1"
)

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

3 REPLIES 3
AmiraBedh
Resident Rockstar
Resident Rockstar

You can merge the two tables into one, adding an extra column that specifies which original table each event came from. Merge and specify the ID to join them on. This will add a new column that specifies which table each row originally belonged to.

Then you need to create the relations between the tables.

And then you measure can be like : 

 

EventFlag = 
IF(
    ISBLANK(Table1[EventDate]),
    IF(ISBLANK(Table2[EventDate]), "No Event", "Event in Table2"),
    "Event in Table1"
)

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

That worked! Thanks Amira!

You are welcome ! 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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