Forum Discussion
AllanBerces
Post Prodigy
1 year agoIF and Multiply
Hi good morning can anyone help me correct my dax on my PQ custom column. what i required is IF the column %RO s blank then i want the value of column Hours but if not blank multiply column hours and...
- 1 year ago
Please indicate if you want Power Query or DAX. You cannot mix them.
Power Query:
if [#"% RO"] = null then [hours] else [hours] *[#"% RO"]
DAX:
IF( ISBLANK([% RO]),[hours],[hours] *[% RO])
Or simplified
[hours]*COALESCE([% RO],1)
lbendlin
Super User
1 year agoPlease indicate if you want Power Query or DAX. You cannot mix them.
Power Query:
if [#"% RO"] = null then [hours] else [hours] *[#"% RO"]
DAX:
IF( ISBLANK([% RO]),[hours],[hours] *[% RO])
Or simplified
[hours]*COALESCE([% RO],1)
- AllanBerces1 year ago
Post Prodigy
Hi lbendlin thank you very much for the reply