Forum Discussion

AlexPjz's avatar
AlexPjz
New Member
2 years ago
Solved

Highlight Weekends on Line Chart

I am looking to achieve this same result: Line Chart to highlight Weekends   I have a Local Date Table with Weekend identified in a calculated column as 1 if true.     My line chart takes ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi AlexPjz 

     

    Just as the link you provide:

    First of all, I create a set of sample:

    Then add a measure:

    MEASURE =
    IF (
        WEEKDAY ( MAX ( 'Table'[Date] ) ) IN { 6, 7 },
        MAXX ( ALL ( 'Table' ), 'Table'[Value] ),
        BLANK ()
    )
    

    The next step is to add a line and stacked column chart, the result is as follow:

     

    If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

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