Forum Discussion
pivot table column as text
- Oct 30, 2019
Add the Range to the Data Model.
Right Click > Add Measure
Write DAX measure as:
=CONCATENATEX(Range,[quantities] & " " & Range[UOM], ", ")Returns:
Then you can just remove Subtotals and Grand Total.
You could also review https://www.sqlbi.com/articles/using-concatenatex-in-measures/ for a more complex application.
Add the Range to the Data Model.
Right Click > Add Measure
Write DAX measure as:
=CONCATENATEX(Range,[quantities] & " " & Range[UOM], ", ")Returns:
Then you can just remove Subtotals and Grand Total.
You could also review https://www.sqlbi.com/articles/using-concatenatex-in-measures/ for a more complex application.
- Steven_at_FoxTileOct 30, 2019Copper Contributor
Is there a way to keep the subtotals from showing when the area groupings are collapsed? (see screenshot)
ā
- ChrisMendozaOct 30, 2019Iron Contributor
Steven_at_FoxTile -
Using COUNTROWS ( ), as described in https://powerpivotpro.com/2012/01/switching-subtotals-on-off-dynamically-using-dax-in-powerpivot/, you can apply an IF as= IF ( [CountRows] > 1, BLANK (), // Try "Many Included" (or some other descriptor) as string you may like this result better CONCATENATEX ( Range, [quantities] & " " & Range[UOM], ", " ) )Where Measure:
CountRows = COUNTROWS ( Range )
- Steven_at_FoxTileOct 30, 2019Copper Contributor