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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi -
Please help, i am stuck with this formula, had searched over the internet, but no luck
i want to create TAT column using Dax formula with adding new column,
TAT =
IF (
ISBLANK ([po_creation_date].[Date] ) || ISBLANK ( [po_release_supplier2].[Date])~
0~
IF (
[po_creation_date].[Date] <= [po_release_supplier2].[Date]~
CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_creation_date]~'p2p-report'[po_release_supplier2] )
)-1~
- CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_release_supplier2]~'p2p-report'[po_creation_date] )
)-1
)
)instead 0 i want to put "in progress", but i got that error...
IF (
ISBLANK ([po_creation_date].[Date] ) || ISBLANK ( [po_release_supplier2].[Date])~
"In Progress"~any suggestion?
Thanks
Regards,
Reza
Solved! Go to Solution.
Append the following text to the end of your formula.
& ""
Append the following text to the end of your formula.
& ""
Thanks @v-chuncz-msft your suggestion is working.
Thanks @amitchandak for your assistance, got the answer from your last feedback,
Really appreciate with your help
Thanks for your reply.
I don't know if i use correctly or not, but i tried below still shows #error
IF (
ISBLANK ( [srm_sc_appr_dt].[Date] ) || ISBLANK ( [po_creation_date] )~
0 & "in progress"~Thanks
else condition is not very clear. Can you try something like
TAT =
IF (
ISBLANK (([po_creation_date].[Date] ) || ISBLANK ( [po_release_supplier2].[Date])),
"InProgress",
IF (
[po_creation_date].[Date] <= [po_release_supplier2].[Date],
concatenate(CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_creation_date]~'p2p-report'[po_release_supplier2] )
)-1
- CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_release_supplier2]~'p2p-report'[po_creation_date] )
)-1,"")
)
)
TAT =
IF (
ISBLANK (([po_creation_date].[Date] ) || ISBLANK ( [po_release_supplier2].[Date])),
"InProgress",
IF (
[po_creation_date].[Date] <= [po_release_supplier2].[Date],
concatenate(CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_creation_date]~'p2p-report'[po_release_supplier2] )
)-1,""),
concatenate( CALCULATE (
SUM ( 'Calendar'[IsWorkingDay2] )~
DATESBETWEEN ( 'Calendar'[Date]~'p2p-report'[po_release_supplier2]~'p2p-report'[po_creation_date] )
)-1,"")
)
)
Here we are comparing text format year with numeric format year
CALCULATE(sum(Sales[Sales]),OrderTime[Order Year]= CONCATENATE( Year(NOW())-2,""))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |