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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
abimfol
New Member

Select text value from a variable table - DAX

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

1 REPLY 1
Anonymous
Not applicable

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.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.