Forum Discussion
Tables Filter
- 3 years ago
Hi Farrah24 ,
Try the following:
- Create a table with what fi anaylis with the following code:
AppTotals = GENERATESERIES(1, DISTINCTCOUNT('Index APP'[APP NAME]), 1)- Create a table with the zones
- Related this table with the app table
- Create the following measure:
APPS Names = VAR _tempTable = TOPN ( MAX ( AppTotals[AppTotals] ), SUMMARIZE ( 'Index APP', 'Index APP'[APP NAME], 'Index APP'[Date], Zones[Zone] ), 'Index APP'[APP NAME], DESC ) VAR _RowCount = COUNTROWS ( DISTINCT ( SELECTCOLUMNS ( _tempTable, "DDD", 'Index APP'[APP NAME] ) ) ) VAR _result = IF ( MAX ( AppTotals[AppTotals] ) <= _RowCount, MAXX ( TOPN ( 1, _tempTable ), 'Index APP'[APP NAME] ) ) RETURN IF ( COUNTROWS ( DISTINCT ( 'Index APP'[Date] ) ) > 1, "", _result )- Do your matrix with the following format:
- Rows: AppTotals from the new table
- Zone: from the new table - Show items with no data
- APP Names measure
See file attach.
So to what I can understand you want to presente all the values that exist correct not based on the app code but using some sort of 1 , 2, 3 ranking is that it?
I want to show all column headers (Zone 1, Zone 2, Zone 3 and Zone 4). Since i'm using date as play axis, at one time in a zone there may not be an app that classify to that zone, so the table value for the column in that zone will be empty and i want to show that. For example Zone 3 refer to this pic. Zone 3 shown up as column header even though there's no value on that column
I've tried to follow your instruction and got result like this where the zone 2 and zone 3 column header didn't show up. And for the app name in zone 1 start to written from second row which should start from the first row. Like "App-14" that start written in second row rather than first row.
Is there any way to make it written from the first row and all the column header shown up even though there's no value in it?
Thankyou for the time you've invested to guide me! Looking forward for your reply!