Forum Discussion
neees78
Helper II
5 years agoDAX expression for new column
Hello All, I've long table (+25 columns - all of date type) need DAX for calculated column - just showing total number of records per row. if 1 row has 3 date columns populated - ...
- 5 years ago
Hi neees78 ,
If you want to use calculated column, you need to unpivot all these columns. But you can add custom column in query editor since the blanl value show null in power query:
= Table.AddColumn(#"Replaced Value", "Custom", each List.Count(List.RemoveNulls(Record.ToList(_))))For more details, please refer to the pbix file.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
v-deddai1-msft
Community Support
5 years agoHi neees78 ,
If you want to use calculated column, you need to unpivot all these columns. But you can add custom column in query editor since the blanl value show null in power query:
= Table.AddColumn(#"Replaced Value", "Custom", each List.Count(List.RemoveNulls(Record.ToList(_))))
For more details, please refer to the pbix file.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai