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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mahmoud_Nasser
Frequent Visitor

data modeling problem

i want to calculate the sales(subtotals) for top 5 product names but give me the same result 

Mahmoud_Nasser_0-1646591764428.pngMahmoud_Nasser_1-1646591777811.png

 

6 REPLIES 6

My guess is the sales amount is correct, but who knows. You should try both totals in a card with nothing else. 

you could also use. CALCULATE(SUM(OrderHeader[SubTotal]),OrderDetail)



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

I made what you said but give me a different result and applied your equation on the table and give me a different result  doesn't equal the total 

Mahmoud_Nasser_0-1646596258275.png

 

Use OrderDetail[SalesAmount] instead of sub total. You can only fi,ter/summarise data by following the arrows in the model. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Thanks, Matt 

i measured it by [salesamount] but doesn't give me the same result 

for example total [subtotals] = 115 M  but total [sales amount] = 98 M 

The formulas add the totals. You need to understand your data better. Pick one invoice and investigate 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

okay, I will do 

Thanks for help matt 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.