Forum Discussion
littlevillage
Jul 28, 2022Iron Contributor
How can I combine formula in Data Model
Hi, I am trying to combine data from Data Model into a Pivot Table , I have written some Measures but it hasn't shown the expect result. I have added an image and the link of the Samplefile below ...
- Jul 30, 2022
If build relationships as
your PivotTable gives practically desired result.
The only it's better to use
perc late A:=DIVIDE( [Total late], [Total ontime], BLANK() )
instead of
perc late:=[Total late]/[Total ontime]
As third parameters in DIVIDE you may use whatever you want instead of BLANK().
Another point we have blank for hub areas, that means not all areas appears in Table1 and Table2 are in Table3. But that's better to adjust Table3.
Please check in attached file.
Harun24HR
Jul 28, 2022Bronze Contributor
Give a try to below formula. See sheet "harun24hr".
=LET(x,UNIQUE(F2:F40156),a,COUNTIFS(B2:B40156,x),b,COUNTIFS(E2:E40156,x),c,a/b,CHOOSE({1,2,3,4},x,a,b,c))
littlevillage
Jul 29, 2022Iron Contributor
you have given me a amazing formula to get correctly result. Actually, I want to create a pivot table from Power Pivot, that I can see details what I need.
Thank you