Forum Discussion
Discrete Count Buckets Based on Averages
- 5 years ago
Anonymous solution attached, there are few other tables in the model, just ignore those. Look at the score and date table.
Also in sample data, I used the year 2021 instead of 2020 but the logic is the same.
Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Anonymous Yes, I like to use variables where possible, especially static values, it is easy to change in case you want to replace it instead of making the changes in the DAX. If you want to take it to next level, you can easily use the what-if parameter and change the value of this variable with the what-if value and everything should work.
I always look for scalable, easy to manage code.