Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi All,
I am new to power BI and new to the report development as well, with almost no knowledge in design.
I have hourly CPU usage data , as attached , for multiple servers .
i want to calculate Daily Average per server and then based on daily average i want to divide them into 3 buckets red(more than 80 average) , yellow(60-80) and green(0-60)
Solved! Go to Solution.
Hi @riteshsharma25 ,
According to your statement, I think you may want to calculate the sum of [avg_cpu_pct] by hostname and then mark them into 3 buckets with following logic: red(more than 80 average) , yellow(60-80) and green(0-60).
Buckets =
VAR SUM_AVG = CALCULATE(SUM('Table'[avg_cpu_pct]))
RETURN
SWITCH(TRUE(), SUM_AVG<=60,"Green",SUM_AVG>60 && SUM_AVG<=80,"Yellow","Red")
Result in my sample is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @riteshsharma25 ,
According to your statement, I think you may want to calculate the sum of [avg_cpu_pct] by hostname and then mark them into 3 buckets with following logic: red(more than 80 average) , yellow(60-80) and green(0-60).
Buckets =
VAR SUM_AVG = CALCULATE(SUM('Table'[avg_cpu_pct]))
RETURN
SWITCH(TRUE(), SUM_AVG<=60,"Green",SUM_AVG>60 && SUM_AVG<=80,"Yellow","Red")
Result in my sample is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
12 | |
3 | |
3 | |
2 | |
2 |
User | Count |
---|---|
13 | |
12 | |
7 | |
5 | |
4 |