Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Visual Calendar

Good afternoon! I'm creating a calendar visualization to show the dates employees go on vacation, then I show the picture. I need to remove Saturdays and Sundays from the visualization and c...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Syndicate_Admin 

    I have a test in my side. I find that calendar visual doesn't support you to remove Saturday/Sumday. They will show grey out instead of being removed if you remove them in filter. And calendar visual doesn't support conditional formatting. 

    I think you can refer to this offical blog to add conditonal formatting in custom visual.

    Here I suggest you to create a calendar table by Matrix visual.

    Create a color measure and use condtional formatting to format the background color.

     

    color measure = IF(MAX('Date'[Date]) in VALUES('List of Holidays in Spain in 2021'[Date]),"Yellow","White")

     

    Result looks like as below.

    For reference:

    Power BI Calendar Visual

    Use conditional formatting in tables

     

    Best Regards,
    Rico Zhou

     

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