Forum Discussion

karleek's avatar
karleek
Frequent Visitor
2 years ago
Solved

Line Chart Visual Disregarding Filters Once Date is Added to X-Axis

I have a measures that work to identify #1: the amount of months within my date slicer, if it was May 2024 - July 2024 that answer is 3 and then #2 if the customer had orders across that same number ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi karleek ,

     

    I made some changes to the measures:

    NumberOfMonths = CALCULATE( DATEDIFF(MIN('Date'[Date]), MAX('Date'[Date]), MONTH) + 1 , ALLSELECTED('Date'))
    CustomerOrderMonths = 
        CALCULATE(
            DISTINCTCOUNT('Date'[Month]),
            FILTER(
                ALL('Date'), 
                COUNTROWS(RELATEDTABLE('Orders')) > 0
            ),
            VALUES('Orders'[CustomerID])
        )

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum