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.
Hi, i've a fact table with Product Quantity Price, Customer, and so on. I have a table with Product, and another with Customer.
I try to have a measure that give me the Value of all product sold, when the total quantity of product sold (for all customers) is less than a certain value.
Tha fact tabel has this columns:
Customer, Date, CodeArticle, UnitPrice, Quantity, Total Price
I tried with this measure
Solved! Go to Solution.
Hi @ancorte ,
According to your description, if CodeArticle in fact table represents product, here's my solution.
Here's my sample.
Create a measure.
Measure =
SUMX (
FILTER (
'FT',
SUMX (
FILTER ( 'FT', 'FT'[CodeArticle] = EARLIER ( FT[CodeArticle] ) ),
'FT'[Quantity]
) < 100
),
'FT'[Total Price]
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ancorte ,
According to your description, if CodeArticle in fact table represents product, here's my solution.
Here's my sample.
Create a measure.
Measure =
SUMX (
FILTER (
'FT',
SUMX (
FILTER ( 'FT', 'FT'[CodeArticle] = EARLIER ( FT[CodeArticle] ) ),
'FT'[Quantity]
) < 100
),
'FT'[Total Price]
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |