Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am new to Power BI.
I have the below visual Table. I would like to hace a Line Chart display the total under "Available To Stock Match" which is a simple measure - Stock Match Qty = [Total Overall Inventory]-[Total Stock Match]-[Total STO]
The issue that I am finding is that since there are negative numbers and I currently have those filtered on the table visual, the line chart is trying to calculate the negative values. I only need positive values. Basically, I need the total on "Available to stock match" to also show on the line chart.
Solved! Go to Solution.
Hi @LenaRamirez
You have to correct your meausre to avoid negative values. First you create a calculated as mentioned below to avoide negative values.
Stock Match Qty =
VAR StockMQty = [Total Overall Inventory]-[Total Stock Match]-[Total STO]
RETURN IF(StockMQty < 0,0,StockMQty)
Then you create a measure based on this calculated column and use that measure in your line chart.
I hope it'll work.
Thanks!
Hi @LenaRamirez
You have to correct your meausre to avoid negative values. First you create a calculated as mentioned below to avoide negative values.
Stock Match Qty =
VAR StockMQty = [Total Overall Inventory]-[Total Stock Match]-[Total STO]
RETURN IF(StockMQty < 0,0,StockMQty)
Then you create a measure based on this calculated column and use that measure in your line chart.
I hope it'll work.
Thanks!
Hi @LenaRamirez
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |