Sep 24 2021 10:16 PM
I have 3 tables:
(See simplified data below and in attached workbook).
tSuppliers:
tSKUs:
tPOs:
I have added these to a Power Pivot model.
I now want to have a mailing list of the suppliers that:
The mailing list needs to have the same columns as my Suppliers table (it's actually a filtered list of the Suppliers table).
I can do this in Power Query or with XLOOKUP's and formula's, but my question is: is it possible to generate such a list using Power Pivot only?
I got this far:
but I have two problems:
So my questions are:
(My real data and filter requirements are obviously a bit more complex, so I'm interested rather in methods and strategies, than a quick solution for the simplified sample data).
Many thanks in advance!
Sep 24 2021 10:57 PM
@bartvana Perhaps the attached file helps.
Sep 25 2021 08:34 AM
@Riny_van_Eekelen So actually the Stockvalue filter was already working, right? I misinterpreted the data, I see now.
If I'm correct, you tweaked the PivotTable with the Design options? Or did you do something else too?
Sep 25 2021 08:57 AM
@bartvana Didn't tweak much more than choosing a tabular layout. Other than that, I also changed the selection of fields (Row, Column and Value) as you can see in the pivot table fields window.
Sep 25 2021 02:18 PM
SolutionAs a comment, that's a best practice to hide fields on "many" side of relationship and don't use them in reports.
Slightly modified @Riny_van_Eekelen solution, you may use measures
Total SKUs:=CALCULATE( COUNTROWS( tPOs ), CROSSFILTER( tSKUs[SKU], tPOs[SKU], Both ) )
SKUs:=CALCULATE( CONCATENATEX(tSKUs, tSKUs[SKU], ", "), CROSSFILTER( tSKUs[SKU], tPOs[SKU], Both ) )
to have PivotTable in bit different form
Sep 27 2021 08:25 AM
@Sergei Baklan Thank you for the tips.
Thank you both for your help!
I'm just not sure which answer to mark as best response now :)
Sep 27 2021 09:26 AM
Actually Best responses and likes are only help to promote this resource (TechCommunity) on the web. More of them more visible the resource. Just SEO stuff.
From personal point of view that doesn't matter, at least for me. Anyway, thank you for the feedback.
Sep 25 2021 02:18 PM
SolutionAs a comment, that's a best practice to hide fields on "many" side of relationship and don't use them in reports.
Slightly modified @Riny_van_Eekelen solution, you may use measures
Total SKUs:=CALCULATE( COUNTROWS( tPOs ), CROSSFILTER( tSKUs[SKU], tPOs[SKU], Both ) )
SKUs:=CALCULATE( CONCATENATEX(tSKUs, tSKUs[SKU], ", "), CROSSFILTER( tSKUs[SKU], tPOs[SKU], Both ) )
to have PivotTable in bit different form