A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi Kenneth,
Thank you for sharing your concern.
If each order appears only once in your table and the Total Sales field contains the sales amount for that order, you can create the following DAX measure:
Total Sales KPI = SUM('TableName'[Total Sales])
Replace TableName with the actual name of your table. You can then add this measure to a Card visual or use it as the Indicator value in your KPI visual.
However, if the same order appears across multiple rows and its Total Sales value is repeated on each row, using SUM() directly may count the same order more than once. In that case, you can create a measure similar to the following:
Total Sales KPI =
SUMX(
VALUES('TableName'[Order ID]),
CALCULATE(MAX('TableName'[Total Sales]))
)
This measure calculates the Total Sales value once for each unique Order ID.
For detailed guidance, you may find these articles helpful:
In case you require more in-depth guidance or support with these steps, I’d recommend posting your query in the Microsoft Fabric Community – Power BI forums. This is a dedicated channel for Power BI discussions. The reason I suggest posting a new topic there is that resources and expertise on Power BI are limited in the general Q&A forum. In the Microsoft Fabric Community, you’ll find the most qualified group of respondents, and other partners who regularly read the forums can share their knowledge or learn from your interaction.
I hope this information is helpful. Should you have any further questions or need additional assistance, please feel free to share them in the comments below. I will be happy to help.
If the answer is helpful, please click "Yes" and kindly upvote it.
Note: Follow the steps in the forum documentation to enable email notifications if you want to receive email notifications related to this topic.