Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am looking to find the average weekly count by a certain category and then group them depending on what the average is.
Example, if weekly average of America is 20, then group 0-20
if weekly average of europe is 40, then group 21-40 and so on.
Solved! Go to Solution.
Hello @MuthalibAbdul,
Thank you for reaching out to the Microsoft Fabric Forum Community.
I have reproduced your scenario in Power BI and I was able to get the expected output as per your requirement calculating the average weekly count by each category and then grouping them based on that average. For your reference, I'm attaching the .pbix file.
If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
Hello @MuthalibAbdul,
Thank you for reaching out to the Microsoft Fabric Forum Community.
I have reproduced your scenario in Power BI and I was able to get the expected output as per your requirement calculating the average weekly count by each category and then grouping them based on that average. For your reference, I'm attaching the .pbix file.
If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.
If I want to add another column to this take is the Location column, can we have an average weekly location for each category?
Hello @MuthalibAbdul,
Thanks for your follow up.
Yes, you can extend the solution to include a Location column. To calculate the average weekly count for each Category and Location, you'll need to adjust the logic slightly:
Once this is done, you’ll be able to visualize and analyze the data at a more granular level per Category per Location.
Spot on!! Thank you!!
hello @MuthalibAbdul
perhaps create calculated column, then use if statement.
IF(
[weekly average]<=20,
"0-20",
IF(
[weekly average]>20&&[weekly average]<=40,
"21-40"
))
Hope this will help.
Thank you.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |