dax

DAX running total (or count) across 2 groups

谁说我不能喝 提交于 2019-11-27 08:26:01
问题 I'm very new to DAX and PowerPivots. I am using PowerPivot to pull data from an SQL server. The data I'm working with is pretty large and complex but I'm considering a simplified version of it for this question. Let's say I have 2 columns, one that contains product names and one that contains a date that product was sold. I have a row for each time 1 unit of any product is sold. Product | Date Orange | 08/13/2013 Orange | 08/13/2013 Orange | 08/13/2013 Apple | 08/14/2013 Apple | 08/16/2013

Power BI: TopN and All Other

梦想与她 提交于 2019-11-27 03:32:00
问题 I have a data set that resembles the following: Year Location Type Amount 2015 West Apple 12 2015 West Pear 14 2015 East Apple 55 2015 South Orange 62 2015 West Orange 64 2015 East Banana 12 2015 North Banana 23 2015 East Peach 43 2015 East Apple 89 2015 West Banana 77 2015 West Orange 43 2015 North Apple 2 And I need it to be summarized to show TopN as well as all other in order to keep the grand total the same. Just filtering to show only the TopN reduces the grand total and will not work..