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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rssilvaba
Resolver II
Resolver II

creating matrix table help need with columns and relationship

Hi All,

I am trying to create a matrix table visual.

The part that I am struggling with is the columns name that should be present there and the values. 
The layout shoud be the following:

projectname/requestidassigned-createdcompleted-assigned
<whatever proj/req is filtered><value in hours><value in hours>
<whatever proj/req is filtered><value in hours><value in hours>
avg's<avg><avg>



So here is what I have at the moment.

First table name 'history'. the important columns are:
request id: key mapping to the request.
event name: created, assigned,completed.
event date: dates of the above

second table:
id: request id,
project name: name of the proj that the request is associated to.


I can calculeted that datediffs . I jsut dont have any idea how to come up with the matrix. Any help will be very much appreciated.

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @rssilvaba ,

 

check this out.

PBIX

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

9 REPLIES 9
V-lianl-msft
Community Support
Community Support

 
I created the test data as you said, but I can't get the time difference. The data I created involves the problem of circular iteration.
Could you please share sample data or sample pbix?(Please mask any sensitive data before uploading)
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 
See if it is you expect.TEST_MATRIX_TIME.PNG
Please refer to the pbix
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @rssilvaba ,

 

could you please remove the empty rows.

empty Rows.png

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Done, please download it again. I put what I could do with a table instead. But the goal is to have a row with the averages and if possible the grouping that matrix does for projectname>reqid

Thank you for the help everyone.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @rssilvaba ,

 

check this out.

PBIX

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Hi @mwegener<

Thanks for that, could you please let me know how you put the average in the total?

HI @mwegener ,

 

Ok I see the measures now.

Thank you very much. I am accepting your reply.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @rssilvaba ,

 

could you provide some sample data?

I think you will use AVERAGEX, to aggregate the measures (assigned-created, completed-assigned).

https://docs.microsoft.com/en-us/dax/averagex-function-dax

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.