Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
This is my Table, e.g.:
SDR ID - Site - CP ID - Start Date
1456 - Glasgow - APT3456 - 03 April 2021
17893 - London - 7479 - 05 May 2022
1802 - Glasgow - 3456 - 07 July 2022
18634 - Bristol - 8934 - 01 Feb 2021
28796 - Glasgow - APT3456 - 12 April 2021
I am using this DAX to calculate Average number of Sessions per Charger per day:
Solved! Go to Solution.
@Anonymous best option is to clean the data before you bring it to the model and replace the old names with their new names and then you won't need to write complex DAX 🙂 but that is alwasys an options but in this case I will need the complete logic of what needs to be what (a sample of 1 is not enough as it needs to work on all) and then I could write the code. I really suggest you just do modeling cleaning option (you can also do that in DAX by adding a surrogate column that will contain only new names and use that column in your measure instead of the original column.
@Anonymous best option is to clean the data before you bring it to the model and replace the old names with their new names and then you won't need to write complex DAX 🙂 but that is alwasys an options but in this case I will need the complete logic of what needs to be what (a sample of 1 is not enough as it needs to work on all) and then I could write the code. I really suggest you just do modeling cleaning option (you can also do that in DAX by adding a surrogate column that will contain only new names and use that column in your measure instead of the original column.
Thank you SpartaBI, Yes, as soon as I sent my message I realised that those numbers are one thing so cleaning the data first is probably the only way to go.
Much appreciated.
Best,
J
@Anonymous my pleasure 🙂
Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |