We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
hi Doctors of Power BI 🙂
first of all i would like thanks for your kind supports to us
I need a support as below thanks in advance
i have table on power bi , i have delivery date and and request date , i would like to create a new column which is calling new delivery date as on right of table , but i need to create this column on query editor
rule will be like that
if request date is full then use request date , if request date is empty then use delivery date
also i would like to learn one more thing at the same taie pls : infact on power bi desktop i can use below formula and solve the problem but below formula i can not use in the query , i think query formula style and desktop formula style is different
Solved! Go to Solution.
#"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if [Request Date] = "" then [Delivery Date] else [Request Date])
HI @erhan_79 ,
The formula what you have got is a DAX expression.
Query editor uses another language called M-query.
You can write following formula in Query editor:
if([Request date ] = null) then [Delivery date] else [Request date])
Go to Query editor --> Under ADD COLUMN on the to ribbon, select CUSTOM COLUMN
A window appears and paste the above formula there. Don't forget to name your new column.
Thanks,
Pragati
dear @Pragati11
thanks for your reply but i tried your formula as below but it gives error
do i something wrong could you pls check
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 62 | |
| 38 | |
| 34 | |
| 22 |