The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Team,
I need to calculate the number of days between the current date and the previous row date or create a lag column which shifts the dates only for the selected subset/group selected on the slicer.
Suppose highlighted orange box is my data, I want the results as shown beside the table. Based on the slicers selected I want the number of days bewteen the events(A,B) or subevents(AA,AB,BA,BB)
Ex: In the group, if event A has occured on 01/01/2023 and next time event A has occured on 01/03/2023, I want the number of days difference as 2 days, This measure/calculated column should work dynamically for any slicer group.
Please help me.
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |