Forum Discussion
Applying MAX to Summerize
- 4 years ago
Hi,
Please check the below picture.
One thing that I want to share is, try to use addcolumns & summarize functions together, instead of using only summarize when adding expressions to the virtual summarized table.
The reason is that, not very often happen in general cases, but in some cases (in fact, quite a lot...), if authors use only summarize function and add expressions into the virtual summarized table, there might be an issue in creating correct numbers and having a good performance.
Max Date With Count Greater Than 10 =VAR _s =FILTER (ADDCOLUMNS (SUMMARIZE ( 'Fact Table', 'Fact Table'[Date] ),"Count", CALCULATE ( COUNT ( 'Fact Table'[Date] ) )),[Count] > 10)RETURNMAXX ( _s, 'Fact Table'[Date] )
Hi,
I am not sure how the measure operates without seeing the actual sample file. However, what I can suggest based on what I see is that, inside VAR in your measure, you can try to filter _s table first, and then write RETURN MAXX(.....
If you can share your sample pbix file's link, it will be helpful.
Thank you.
- AltGr94 years ago
Helper I
Hi Thanks for your help.
Is this the link you asked for? It says "People in your organization" so I don't know if you'll have access.
- Jihwan_Kim4 years ago
Super User
Hi,
Sorry that if I was not clear.
I was asking for the sample power bi desktop file's link, not your power bi service link.
Thank you.
- AltGr94 years ago
Helper I
Hey thanks, I've sent you the link privately.