Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Activating Date slicer by USERELATIONSHIP function

Hello! In my fact table I have two date columns; creation_dateTime and Delivery_dateTime. In need to use two date slicers in my report for both date columns.  The Delivery_dateTime column has non...
  • v-xulin-mstf's avatar
    5 years ago

    Hi Anonymous,

     

    Try measure as:

    Delivery = 
    CALCULATE (
        DISTINCT(Fact_Orders[od_Delivery_DateTime]),
        ALLSELECTED ( Dim_Dates[Date] ),
        USERELATIONSHIP(Fact_Orders[od_Delivery_DateTime],Dim_Dates[Date])
    )

     You can also refer this related post:

    https://community.powerbi.com/t5/Desktop/Comparar-Per%C3%ADodos-Distintos/td-p/2024811

     

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!