Forum Discussion
Create a table/matrix using columns from data model as rows based on a condition.
- 4 years ago
Hi Anonymous
If you require the Quarter as the column per your post, then I suggest changing the Quarter from a measure to a calculated column or create a Date table (which would be more aligned to better practice). You can use this link SQLBI Date Table.
Hope this helps 🙂
Theo
Hi Anonymous
Click on Matrix visual. Add the "Ice Creams Sold" and "IceCreams Sold to Children" in the "Values" section in the visual pane. Then, add the "Quarter" column in the Columns section of the visual pane. Go into the Visual's settings as per below and turn on the "Switch Values to Rows" button.
Hope this helps.
Theo 🙂
Hello TheoC ,
Thank you for the response.
The Quarter is a measure created in the model. It's not getting added in the Column section of matrix.
- TheoC4 years agoCommunity Champion
Hi Anonymous
If you require the Quarter as the column per your post, then I suggest changing the Quarter from a measure to a calculated column or create a Date table (which would be more aligned to better practice). You can use this link SQLBI Date Table.
Hope this helps 🙂
Theo