Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Experts,
I want to calculate mode of value column of summarized table : For example am using below dax to get the table summarized, summarized dax and summarized table is below.. now I want to calcualte mode " Count of order by customer"
summarized_Table = summarize('Sales','Sales'[CustomerKY+Date]),"Count_Freq",CALCULATE(COUNT('Sales'[CustomerKY+Date]),
ALLEXCEPT('Sales','Sales'[CustomerKY+Date]),FILTER('Sales','Sales'[SalesValue]>0))
Solved! Go to Solution.
Click query editor-> transform-> split columns by the left most space like below:
Then you can achieve the Customer and Date columns:
Finally modify the dax like below:
summarized_Table = SUMMARIZE ( 'Sales', 'Sales'[Customer], "Count_Freq", CALCULATE ( COUNT ( 'Sales'[Customer] ), ALLEXCEPT ( 'Sales', 'Sales'[Customer] ), FILTER ( 'Sales', 'Sales'[SalesValue] > 0 ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Click query editor-> transform-> split columns by the left most space like below:
Then you can achieve the Customer and Date columns:
Finally modify the dax like below:
summarized_Table = SUMMARIZE ( 'Sales', 'Sales'[Customer], "Count_Freq", CALCULATE ( COUNT ( 'Sales'[Customer] ), ALLEXCEPT ( 'Sales', 'Sales'[Customer] ), FILTER ( 'Sales', 'Sales'[SalesValue] > 0 ) ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Here is a good article on statistical-patterns. Mode is towards the top of the aticle.
User | Count |
---|---|
77 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
93 | |
50 | |
49 | |
46 |