Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I want to calculate with the help of DAX below measure
Unit Price * Quantity - Discount 20%
How to get the DAX measure?
I would be grateful if you could help me with this problem.
Thank you
Solved! Go to Solution.
Hi @Aamir2021 ,
You will need relationships between these tables. That would help Power BI to get the corresponding Quantity for specific Unit Price along with the Discount. Perhaps you have a product column in the table?
Best Regards,
Jay
Thanks for your suggestion.
Hi @amitchandak,
Thanks for your reply. However, it does not work.
There are three tables. The first table has Unit Price, second table has Order Quantity and last table has Discount allowed in percantage.
My question is the Unit price is 15, Order Quantity is 20 and Discount allowed is 20%
So how can we calculate dax to get the Sales after discount?
I hope you get the my point.
@Aamir2021 , You need a common dimension. assume you have these measures from two tables
[Unit Price] , [Quantity] and common item dimension
Sumx(values(item[Item ID]), calculate(([Unit Price] * [Quantity])*0.8)))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
26 | |
24 | |
12 | |
11 | |
10 |