Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
st-dat
Helper III
Helper III

PowerPivot Dax/Measures issues on TopN and Drill Down

 

1 – Top 5 grocery total spend or Total Sum of the Top 5 grocery item   
 (First identify the 5 Top Grocery items and sum their amount = $26500   
Expected Answer26500     
       
Supplier NameAmount     
grocery - 117000     
grocery-166000     
grocery - 205000     
grocery - 154500     
grocery-94000     
Expected Answer $                     26,500.00     
       
2-  Top 10 items total spend     
Expected Answer $                     58,800.00     
       
Supplier NameNumber of OrderAmount    
Supplier-18959500    
Supplier-19828200    
Supplier-17727200    
Supplier-16606000    
Supplier-11407000    
Supplier-20455000    
Supplier-15454500    
Supplier-13303000    
Supplier-8343400    
Supplier-5505000    
 Expected Answer $                    58,800.00    
       
3 - Nnumber of Orders placed to TOP 10 Suppliers and total dollars spend   
Answers expected559 $                    59,400.00    
       
Item NumberDateSupplier NameNumber of OrderAmountProduct  
1501/23/2018Supplier-15454500Grocery 
1601/24/2018Supplier-16606000Grocery 
1701/25/2018Supplier-17727200hardMEDICARE 
1801/26/2018Supplier-18959500childMEDICATION
1901/27/2018Supplier-19828200adultCAREDRUG 
2001/28/2018Supplier-20455000GROCERY 
901/17/2018Supplier-9404000GROCERY 
1101/19/2018Supplier-11407000GROCERY 
1301/21/2018Supplier-13303000abccNOTKOWN 
501/13/2018Supplier-5505000HOMECARE 
  Answers expected559 $  59,400.00  
       
4 – Top 5 items total spend      
Answer expected  $                    37,900.00    
       
Item NumberDateSupplier NameNumber of OrderAmountProduct  
1701/25/2018Supplier-17727200hardMEDICARE 
1801/26/2018Supplier-18959500childMEDICATION
1901/27/2018Supplier-19828200adultCAREDRUG 
1101/19/2018Supplier-11407000GROCERY 
1601/24/2018Supplier-16606000Grocery 
  Answer expected  $  37,900.00  
       
5- Top 3 computer products  total spend (Computer products are products that start with four lower Case letters) 
Item Number      
Answer expected:-  $                    24,900.00    
       
 DateSupplier NameNumber of OrderAmountProduct 
1701/25/2018Supplier-17727200hardMEDICARE 
1801/26/2018Supplier-18959500childMEDICATION
1901/27/2018Supplier-19828200adultCAREDRUG 
  Answer expected:-  $  24,900.00  
       
       
6 -  Drill down through  double-clicking the report data of 30 is     
displaying 1000 rows on excel instead of actual 30.    
Kindly help with solution      
2 ACCEPTED SOLUTIONS

Hi,

 

You may download my PBI solution file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

You are welcome.  Have a good day.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

40 REPLIES 40

Hello,

 

Trust you are doing good. Many thanks for your response and supports .

I will provide feedback tomorrow after opening the file.

 

I just posted one Calculation function request for help. I will appreciate your intelligent opinion on the appropriate PowerPivot measures to use.

 

Best Regards

 

 

 

Hi,

 

Share the link of that post.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello,

 

Trust your was good.

 

All my efforts failed to open the pbix file.

 

My second request below require a measure to derive a single value.....

 

I have two tables: AAA and BBB     
Request: - To count number of department in table BBB that exist in table AAA department 
where table AAA Faculty name  starts with 'two lower case letters'  
       
Expected Result is Nine (9) Departments    
       
1st Table name is ----  AAA     
 FACULTYDEPARTMENT    
 pgSCIENCEBiology    
 SCIENCEBiology    
 pgSCIENCEChemistry    
 SCIENCEChemistry    
 pgSCIENCEPhysics    
 ARTSLaw    
 pgARTSGeography    
 ARTSLiterature    
 pgARTSLaw    
 pgARTSLiterature    
 pgARTSSocial    
       
       
2nd Table name  is -- BBB      
 SCHOOLDEPARTMENT    
 pgSCIENCEBiology    
 SCIENCEBiology    
 pgSCIENCEChemistry    
 SCIENCEChemictry    
 pgSCIENCEPhysics    
 ARTSLaw    
 pgARTSGeography    
 ARTSLiterature    
 pgARTSLaw    
 pgSCIENCEBotany    

Hi,

 

The PBI file is opening just fine from the link that i shared with you.  I do not understand your expected result.  How can the answer be 9 when the departments in Table BBB are only 8? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

You are super correct, thanks

 

Please share the statements of the measure used here. I spent most part of my day searching for online guide on how to open pbix file on excel. It wasnt your fault or that the solution is wrong but my lack of understanding how to manage the opening of the file on excel 2016.

 

Regards 

Hi,

 

Download and install PowerBI desktop (for free) from the Microsoft website and then just double click to open the PBI file from the link i shared with you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Many thanks for your kindness.. I will update you as soon as it is done.

 

Please intervene my other request resent today....I suspect it requires a count and filter functions I could not manage properly.

 

Best Regards

Please read my previous post carefully.  I have asked a question there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Your question:  How can the answer be 9 when the departments in Table BBB are only 8? 

 

It is not 9, the correct result out output should be 5...(the departments in table BBB that exist in table AAA and having Faculty name starting with two lower case latter).

 

pgSCIENCEBiology
pgSCIENCEChemistry
pgSCIENCEPhysics
pgARTSGeography
pgARTSLaw

 

I'm sorry for the misleading final value and inadequate explanation

Thank you

Hi,

 

You may download my solution workbook from here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

Thank you so much and have a good day.

You are welcome.  Have a good day.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

I have 2 tables: AAA and BBB      
Request: - To count number of department name in table BBB that exist in table AAA department 
where table AAA Faculty name contains 'PG'     
         
Expected Result is Nine (9) Departments     
         
Table name ----  AAA       
FACULTYDEPARTMENT      
Science-PGBiology       
ScienceBiology       
Science-PGChemistry      
ScienceChemistry      
Science-PGPhysics       
ArtsLaw       
Arts-PGGeography      
ArtsLiterature      
Arts-PGLaw       
Arts - PGLiterature      
Arts - PGSocial       
         
         
Table name  -- BBB       
SCHOOLDEPARTMENT      
Science-PGBiology       
ScienceBiology       
Science-PGChemistry      
ScienceChemictry      
Science-PGPhysics       
ArtsLaw       
Arts-PGGeography      
ArtsLiterature      
Art-PGLaw       
Science - PGBotany       

Great work! Thanks

 

Another issue, I don't know if it's PowerPivot bug or my error, when you double-click to drill down a figure e.g. 20 as displayed on the report sheet generated from the PowerPivot excel table, it will show a 1000 rows instead of 20 rows based on report figure.  

 

What could be the cause and possible solution...

 

Unfortunately, i have no sample to show here......I'm looking forward to a good class to improve my knowledge in Measures and Power Bi

 

Thank you

You are welcone.  if my reply helped, please mark it as Answer.  The drill down feature of a PowerPivot Table is quite poor.  The way you are experiencing it is hwo it works.  The only solutio is to create another Pivot Table from the Data Model and apply simple Pivot Table filters of Top n.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Many thanks, I will reply with feedback on monday.

 

Kind regards

It may be possible to copy and paste this sample table as i could not get it linked. Thank you

 

Item NumberDateSupplier NameNumber of OrderAmountProduct 
101/09/2018Supplier-1202000GROCERY
201/10/2018Supplier-22200HARDWARE
301/11/2018Supplier-34400HARDWARE
401/12/2018Supplier-45500HARDWARE
501/13/2018Supplier-5505000HOMECARE
601/14/2018Supplier-6252500HOMECARE
701/15/2018Supplier-7303000GROCERY
801/16/2018Supplier-8343400GROCERY
901/17/2018Supplier-9404000GROCERY
1001/18/2018Supplier-10151500GROCERY
1101/19/2018Supplier-11407000GROCERY
1201/20/2018Supplier-12202000nameTOBEDETERMINE
1301/21/2018Supplier-13303000abccNOTKOWN
1401/22/2018Supplier-143300xwyzNAME
1501/23/2018Supplier-15454500Grocery
1601/24/2018Supplier-16606000Grocery
1701/25/2018Supplier-17727200hardMEDICARE
1801/26/2018Supplier-18959500childMEDICATION
1901/27/2018Supplier-19828200adultCAREDRUG
2001/28/2018Supplier-20455000GROCERY

Could you copy the file in this format. I will keep trying if I can send a link.

Thank you

 

 

Item NumberDateSupplier NameNumber of OrderAmountProduct 
101/09/2018Supplier-1202000GROCERY
201/10/2018Supplier-22200HARDWARE
301/11/2018Supplier-34400HARDWARE
401/12/2018Supplier-45500HARDWARE
501/13/2018Supplier-5505000HOMECARE
601/14/2018Supplier-6252500HOMECARE
701/15/2018Supplier-7303000GROCERY
801/16/2018Supplier-8343400GROCERY
901/17/2018Supplier-9404000GROCERY
1001/18/2018Supplier-10151500GROCERY
1101/19/2018Supplier-11407000GROCERY
1201/20/2018Supplier-12202000nameTOBEDETERMINE
1301/21/2018Supplier-13303000abccNOTKOWN
1401/22/2018Supplier-143300xwyzNAME
1501/23/2018Supplier-15454500Grocery
1601/24/2018Supplier-16606000Grocery
1701/25/2018Supplier-17727200hardMEDICARE
1801/26/2018Supplier-18959500childMEDICATION
1901/27/2018Supplier-19828200adultCAREDRUG
2001/28/2018Supplier-20455000GROCERY
      

I'm not sure windows 7 running on my computer can share file

Hello

 

I'm trying to figure out the sharing of the file requested from the home network

Thanks for your kindness

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.