This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
VAR _vGetMax = CALCULATETABLE(
SUMMARIZECOLUMNS(
Mytable[brand],
mytable[groups],
'Perfect Experience - Charts'[Sort],
"@prodcount", [Prod Count]),
DATESBETWEEN('Calendar Table'[Date], DATEADD(LASTDATE('Calendar Table'[Date]), -2,MONTH),
LASTDATE('Calendar Table'[Date])))
VAR _maxprodcount =
MAXX ( _vGetMax , [@prodcount] )
I do have a variable table that is derived using the above if i return the variable _maxprodcount it gives me the highest product count as desired. Now the challenge is i want to slect the brand where [@prodcount] = _maxprodcount
Can anyone help with this?
Many thanks
Hi @abimfol ,
So far, the created virtual table cannot be used for filtering. You can try to create the virtual table in the formula as a physical table, and then filter
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 32 | |
| 27 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 50 | |
| 31 | |
| 26 | |
| 22 |