The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Community..!!
As you can see in the below image, i need it in the matrix visual , employee name in row, months and quarter in column and sales in value.
is this possible in the matrix visual?
please give me the solution.
thanks in advance..!!
Solved! Go to Solution.
Hi Community,
Thank you so much for responses.
I have got the solution by my own and it's very simple.
Power BI by default gives us Date Hierarchy and the same we can add it in the table visual and if we drill down to the any level we need , it will give result as per my requirement.
Hi Community,
Thank you so much for responses.
I have got the solution by my own and it's very simple.
Power BI by default gives us Date Hierarchy and the same we can add it in the table visual and if we drill down to the any level we need , it will give result as per my requirement.
Hi @prasadpatil027 ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.
Hi @prasadpatil027 ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @prasadpatil027 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
@prasadpatil027 , You can have Qtr and Month in Matrix column. It will show Qtr On op on month and Qtr Total in column when Qtr ends.
Are you looking to merge headers ??
Hi @prasadpatil027 ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @amitchandak for the prompt response.
Yes, it is possible.
Here’s how you can do it step-by-step:
Step to Create Matrix Visual (Month + Quarter in Columns)
1. Prepare Your Data Table
Make sure your source data is structured like this:
Employee Date Sales
John 2025-01-01 500
John 2025-02-01 400
...
Each row should represent one Employee + Month + Sales combination.
2. Create Date Table (if not present)
Power BI needs a proper Date table for time intelligence.
Go to Modeling > New Table and create:
DateTable = CALENDAR(DATE(2025,1,1), DATE(2025,12,31))
Then add:
Month = FORMAT([Date], "MMM")
Quarter = "Q" & FORMAT([Date], "Q")
YearMonth = FORMAT([Date], "YYYY-MM")
3. Create Relationships
Relate your Sales table's Date to the DateTable[Date]
4. Create Matrix Visual
In Power BI > Matrix Visual:
Rows: Employee
Columns: Use Date Hierarchy or YearMonth + Quarter
Values: Sales (aggregated as SUM)
5. Show Both Month and Quarter Together
You can create a custom column in your date table like:
MonthQuarter =
SWITCH(
TRUE(),
FORMAT([Date], "MMM") = "Mar", "Q1 Total",
FORMAT([Date], "Jun", "Q2 Total"),
FORMAT([Date], "MMM")
)
Then drag MonthQuarter into the Columns field of the matrix to show months + Qtr total.
6. Enable Subtotals
In the Visual Format Pane:
You will get output as:
Rows: John, Sarah
Columns: Jan, Feb, Mar, Q1 Total, Apr, May, Jun, Q2 Total
Values: Sales
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
User | Count |
---|---|
77 | |
77 | |
36 | |
30 | |
28 |
User | Count |
---|---|
107 | |
100 | |
55 | |
49 | |
45 |