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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Create a table/matrix using columns from data model as rows based on a condition.

Create a table/matrix using columns from data model as rows and display corresponding values segregated as Total, Quarter 1, Quarter 2, etc.

For example, I have two columns in my dataset - IceCreams Sold, IceCreams Sold to children. I want my visual to show like this :

 

 TotalQ1Q2Q3Q4
IceCreams Sold     
IceCreams Sold to children     

 

Thank you in Advance!

1 ACCEPTED SOLUTION
TheoC
Community Champion
Community 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

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
TheoC
Community Champion
Community Champion

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.

 

TheoC_0-1658870570473.png

Hope this helps.

Theo 🙂

 

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Anonymous
Not applicable

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.

TheoC
Community Champion
Community 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

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.