Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.