Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a data set of invoices and invoice line items. These line items have a related category and sub category for several other tables.
I need to identify all "invoice_no" with items in "itemsubcategory" = "Consult" and then see if that consult was converted and they purchased other items
I have tried Power Query but as the sub category comes from multiple different tables depending if the item is a product, service or package it got too messy.
Please Help!
Solved! Go to Solution.
Hi @Hoggy77 ,
You can try below formula:
AdditionalItemsPurchased =
CALCULATE (
COUNTROWS ( 'LineItems' ),
'LineItems'[invoice_no] IN VALUES ( Invoices[invoice_no] ),
'LineItems'[itemsubcategory] <> "Consult"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Hoggy77 ,
You can try below formula:
AdditionalItemsPurchased =
CALCULATE (
COUNTROWS ( 'LineItems' ),
'LineItems'[invoice_no] IN VALUES ( Invoices[invoice_no] ),
'LineItems'[itemsubcategory] <> "Consult"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Hoggy77 , Try a measure like
Measure =
var _inv = summarize(calculatetable(Invoice, Item[itemsubcategory]= "Consult"), Invoice[Invoice No])
return
calculate(COuntrows(Invoice), Filter(Invoice, not(isblank(invoice[Purchase Date])) && Invoice[Invoice No] in _inv))
The purchase date condition needs to improve
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |