Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kaym
Helper I
Helper I

Column imported from SQL not showing accurate data when summarised for months

I have a gross profit % column in my datatset (imported from SQL) that is not showing the correct numbers when I summarize all days values, as in try to show total gross profit % for some month of the year. However, it shows the correct values in excel. I also created a measure in power bi for gross profit % which is showing the correct values but the original column is not

1 ACCEPTED SOLUTION

Without a model or source data available troubleshooting is difficult.   The following learning resource from EnterpriseDNA on Calculating Percent Profit Margins Using DAX In Power BI covers the topic from end to end using best practices.

View solution in original post

3 REPLIES 3
kaym
Helper I
Helper I

I am sorry for being unclear. SQL View has the correct table data. All the other columns are accurate and match with my dataset in SQL. It is just the gross profit % column that is shwoing different numbers. I am not allowed to share data or files but I am posting a screenshot fo a table I made to make it clearer. Here, Gross Profit % column is a measure I made whcih matches perfectly wiht the original dataset numbers (in sql). The other two columns are the ones I get from dataset and they show different numbers 

kaym_0-1690556974756.png

 

Without a model or source data available troubleshooting is difficult.   The following learning resource from EnterpriseDNA on Calculating Percent Profit Margins Using DAX In Power BI covers the topic from end to end using best practices.

foodd
Super User
Super User

Are you meaning that the SQL View that is being connected to is not including the correct table data or summaries?   If that is the case, then you need to look at what is being selected and handle it upstream.   If you would like assistance from members of the Community Forum, then please add a work-in-progress PowerBI Desktop file and any source data necessary to cleanly refresh the model in Excel format.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.