Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Dears,
i have created table date and dublictae it and call it comparison, i have linked it to the main sales table i have, so now i have 2 slicer one is current period and the other one is past period with a matrix table have the type of the product as a coulomn and the ttl sales of current period and the past period, so it will look like belwo.
then i have created a measure
Solved! Go to Solution.
Hi @Yousra-ali
If the goal is to compare to periods controlled by different slicers, use a second dates/calendar table that has an active relationship to your fact table. Invoke the inactive relationship in a table using USERELATIONSHIP. You also need to remove the filter coming from the dates table with an active relationship to fact
Total Revenue Comparison =
CALCULATE (
[Total Revenue],
USERELATIONSHIP ( ComparisonDates[Date], Data[Date] ),
REMOVEFILTERS ( Dates )
)
Please see the attached pbix.
Hi @Yousra-ali
If the goal is to compare to periods controlled by different slicers, use a second dates/calendar table that has an active relationship to your fact table. Invoke the inactive relationship in a table using USERELATIONSHIP. You also need to remove the filter coming from the dates table with an active relationship to fact
Total Revenue Comparison =
CALCULATE (
[Total Revenue],
USERELATIONSHIP ( ComparisonDates[Date], Data[Date] ),
REMOVEFILTERS ( Dates )
)
Please see the attached pbix.
Hello @Yousra-ali
As you have two sclicers, the best thing to do is to disconnected your second date dimension and in the measure used something like:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |