Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Data:
Product | Date |
A | 1-Apr |
A | 2-Apr |
A | 3-Apr |
B | 1-Apr |
B | 2-Apr |
C | 1-Apr |
To get previous date
i need
if there is previous date even if current date is blank then show me
Solved! Go to Solution.
Hi @ddpl ,
A table of dates needs to be created (no need to create a relationship). Then create the following formula that will get the blank values.
MEASURE =
IF (
ISBLANK ( [Pre_Dt] ),
CALCULATE ( MIN ( 'Table'[Date] ), 'Table'[rank_] = 1 ),
[Pre_Dt]
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ddpl ,
A table of dates needs to be created (no need to create a relationship). Then create the following formula that will get the blank values.
MEASURE =
IF (
ISBLANK ( [Pre_Dt] ),
CALCULATE ( MIN ( 'Table'[Date] ), 'Table'[rank_] = 1 ),
[Pre_Dt]
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
129 | |
73 | |
70 | |
58 | |
53 |
User | Count |
---|---|
190 | |
97 | |
67 | |
62 | |
54 |