Forum Discussion
Anonymous
5 years agoNot applicable
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...
- 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!
v-xulin-mstf
5 years agoCommunity Support
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!