Forum Discussion
MAX Function disrupts Table Visaul
Hi.
I created a Measure that uses the MAX function when attempting to identify
vPerentageOccupied= MAX ( [TableA] ! [PAX]) / MAX ( [TableA] ! [CAPACITY])
The Measure works just fine when the Filter Context is isolated to one ID value.
However, when adding the Measure to a Table Visual...a Table Visual with thousands OF ID values....the Table Visaul will not update...just spins round, and round, and round....
Can I use the MAX function in a Table Visual? Should I use a different Function to accomplish the same task.
I understand I can create a Calculated Column in [TableA], but I believe Measures are more efficient.
Your thoughts?
Simple Example, for demonstation purposes.
TableA
[ID] [PAX] [CAPACITY]
1 100 200
2 150 200
3 200 200
4 175 200
10 Replies
- Greg_Deckler
Community Champion
hkillen What is that syntax? I tried that syntax and that did not work at all. Should be:
vPerentageOccupied= MAX ( 'TableA'[PAX]) / MAX ( 'TableA'[CAPACITY])I don't see why that wouldn't work in a table where ID is included.
I tried with this table:
Table = ADDCOLUMNS( GENERATESERIES(1,10000), "PAX",RANDBETWEEN(0,175), "CAPACITY",200 )and a visual that included an unsummarized [Value] and the measure and got subsecond response time.
- hkillen
Helper I
I'm referring to a Table Visual (i.e., Card, MultiCard, Matrix, Table)...not a Data Table imported or a Table created from DAX.
- Greg_Deckler
Community Champion
hkillen ? I don't know what you mean by that. I have never seen that syntax in DAX or the ability to refer to a visualization in DAX so no idea what you mean.
- hkillen
Helper I
I am trying to use a MEASURE in a Table Visual.
The Measure includes the MAX function, to isolate the ID from the Data Table (TableA)