Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I'm new to Power BI, so apologies if this is a really simple question to answer.
I've created a Line Chart to display number of API Requests by Year / Month.
I'd like to add another series to the chart to show number of failed requests but I'm struggling to understand how to do this. I have a HttpStatusCode field, in short count the number of Id's whereby the HttpStatusCode <> 200.
Again, apologies if this sounds very simple.
Solved! Go to Solution.
Hey @Testsubjec ,
you can do that with a measure.
Try the following:
Status not 200 = CALCULATE( SUM(myTable[API Requests]), mytable[HttpStatusCode] <> 200)
Hi @Testsubjec ,
Just as selimovd said ,try the below:
Status not 200 = CALCULATE( SUM(myTable[API Requests]), mytable[HttpStatusCode] <> 200)
Or (if API Requests is Access log)
Status not 200 = CALCULATE( distinctcount(myTable[API Requests]), mytable[HttpStatusCode] <> 200)
If still not work ,could you pls share your pbix file,remember to remove confident data.
Best Regards
Lucien
Hey @Testsubjec ,
you can do that with a measure.
Try the following:
Status not 200 = CALCULATE( SUM(myTable[API Requests]), mytable[HttpStatusCode] <> 200)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |