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
Hi i have a question with a formula
Scenario: I need to calculate if a record appear in the last 90 days based in finishtime and place true or false in a column
I have create a cuntom column with Finishtime - 90 named Finishtimemin90 to compare with earlier
Solved! Go to Solution.
Hi @salespace,
I add date range compare formulas to your conditions, maybe you can try to use below formula:
Historico3 =
IF (
COUNTROWS (
FILTER (
ALL ( 'SCS apoyo' ),
[IMEIIn] = EARLIER ( 'SCS apoyo'[IMEIIn] )
&& 'SCS apoyo'[FinishTime]
IN CALENDAR (
EARLIER ( 'SCS apoyo'[FinishTime] ) - 90,
EARLIER ( 'SCS apoyo'[FinishTime] )
)
)
) > 1,
TRUE,
FALSE
)
Regards,
Xiaoxin Sheng
Hi @salespace,
Maybe you can try to use following calculate Colum formula if it suitable for your requirements:
Historico3 =
IF (
COUNTROWS (
FILTER (
ALL ( 'SCS apoyo' ),
'SCS apoyo'[IMEIIn] = EARLIER ( 'SCS apoyo'[IMEIIn] )
&& 'SCS apoyo'[FinishTimeMin90].[Date] < EARLIER ( 'SCS apoyo'[FinishTime].[Date] )
)
) > 1,
TRUE,
FALSE
)
Since we not clear for your scenario, can you please share some sample data for test if above not help?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
thanks for your help and let me clarify,
I have the historical repairs and I want to get the bounce Rate I mean if the Serial number appear in the last 3 months (90Days)
i Create a Custom Column calculating if the serial appear in the last 3 month, using the repair date (FinishTime) adding true o false
i create another column with the time interval date i mean, the date-90 (FinishtimeMin90) <-- i think that here is the problem, earlier not comparing with the sale column using another to get the time interval, Im not sure if this works
Using SQL to same database I get other values it is useful share que query?
@Anonymous
thanks for your help and let me clarify,
I have the historical repairs and I want to get the bounce Rate I mean if the Serial number appear in the last 3 months (90Days)
i Create a Custom Column calculating if the serial appear in the last 3 month, using the repair date (FinishTime) adding true o false
i create another column with the time interval date i mean, the date-90 (FinishtimeMin90) <-- i think that here is the problem, earlier not comparing with the sale column using another to get the time interval, Im not sure if this works
Using SQL to same database I get other values it is useful share que query?
Hi @salespace,
I add date range compare formulas to your conditions, maybe you can try to use below formula:
Historico3 =
IF (
COUNTROWS (
FILTER (
ALL ( 'SCS apoyo' ),
[IMEIIn] = EARLIER ( 'SCS apoyo'[IMEIIn] )
&& 'SCS apoyo'[FinishTime]
IN CALENDAR (
EARLIER ( 'SCS apoyo'[FinishTime] ) - 90,
EARLIER ( 'SCS apoyo'[FinishTime] )
)
)
) > 1,
TRUE,
FALSE
)
Regards,
Xiaoxin Sheng
Is not an error, only the result information is not accurate using SQL query to same database, I get other values
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |