The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I'm trying to replicate this excel formula in Power BI
=IF([@[Ex Factory Allocated]]="Shipped","Shipped",H2-G2)
But when i try and insert a column i get this:
My Ex Factory Allocated column is a mixture of text("Shipped) and dates. Also, is there any way to include this in the query editor itself(maybe using the custom column option)? The biggest roadblock here are the different data types for the same column.
Thank you for your help!
You could try using a FORMAT function in the else part:
FORMAT([...Requested]-[...Allocated], "General Number")
Hi @AkhilAshok,
Thank you for your reply! However, it states that there are too few arguments for the FORMAT function.
Hi @Anonymous ,
I'd like some sample data for test, it will be help for coding formula.
BTW, please check MSDN library for dax format functions, you are typing wrong 'format' expression in 'if' statement.
Regards,
Xiaoxin Sheng
User | Count |
---|---|
70 | |
67 | |
63 | |
50 | |
28 |
User | Count |
---|---|
113 | |
77 | |
65 | |
55 | |
43 |