Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have this problem, that whenever I try to calculate sales, it doesn't show the correct total sales.
Below is what the expected result should have been like:
under names I have these items:
name = haircare and perfumes
order_id = 2005114916 and 2005114915
product_id = 76039, 87848 etc.
Can anyone help?
Solved! Go to Solution.
Hi @Jonas_Holm ,
You could first create a measure like
Measure = IF(ISINSCOPE('Table'[product_id]),SUM('Table'[base_price_ex_tax])*[Qty Measure])
Then create another measure to sum up.
Sales = SUMX('Table',[Measure])
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jonas_Holm ,
You could first create a measure like
Measure = IF(ISINSCOPE('Table'[product_id]),SUM('Table'[base_price_ex_tax])*[Qty Measure])
Then create another measure to sum up.
Sales = SUMX('Table',[Measure])
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!