Forum Discussion
Calculate log values for a column
Hi Guys,
I would like to generate log values for a column.
This Log values can either be a clculated measure or a calculated column.
I tried the functions LOG and LOG10. But they seem to accept only single values
Any ideas that could generate log on a column.
My expected data is shown below
| Bus | Mileage | Log Mileage |
| A | 3 | 0.477 |
| B | 2 | 0.301 |
| C | 3.5 | 0.544 |
| D | 2.89 | 0.460 |
Best Regards
HI Thejeswar ,
You can try using Exponential DAX function.
https://docs.microsoft.com/en-us/dax/exp-function-dax
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Hi Thejeswar ,
You can use this for a calculated column:
ColumnName = LOG10('Table'[Mileage])ColumnName = LOG('Table'[Mileage])For measures:log = LOG(SUM('Table'[Mileage]))log = LOG10(SUM('Table'[Mileage]))Ricardo
2 Replies
- camargos88
Community Champion
Hi Thejeswar ,
You can use this for a calculated column:
ColumnName = LOG10('Table'[Mileage])ColumnName = LOG('Table'[Mileage])For measures:log = LOG(SUM('Table'[Mileage]))log = LOG10(SUM('Table'[Mileage]))Ricardo - Pragati11
Super User
HI Thejeswar ,
You can try using Exponential DAX function.
https://docs.microsoft.com/en-us/dax/exp-function-dax
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati