The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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)
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |