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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nidquival
Frequent Visitor

Creating Matrices in Report Builder that are Similar to Power BI

Good day,

 

I am trying to create a paginated report that has a matrix with a dynamic number of rows. I have tried both Microsoft Power BI Desktop and Microsoft Power BI Report Builder, and I would like to ask if there is a way that I can replicate the design that I made in Power BI Desktop in Report Builder. Both files used Matrices as the visuals.

 

Power BI Desktop

Power BI Attendance.jpg

 

 As shown above, the matrix is visualized similarly to a table, wherein the values are grouped by dates and shown as one row. As I need to export the values to a PDF file, having incomplete results due to the presence of a scroll bar when printing and not having the ability to print all the rows is unacceptable.

 

Power BI Report Builder 

Report Builder Attendance Template.jpg

 

Report Builder Attendance Report.jpg

When the report was recreated in Power BI Report Builder, the values do not line up in one row similar to that in Power BI Desktop. 

 

Is there a step that I missed or a process that I should do in order to properly recreate the matrix in Report Builder such that the values line up in one row according to date?

 

Thank you very much.

 

Nico

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @nidquival 

 

You don't need to add four columns [IN AM], [OUT AM], [IN PM], [OUT PM] into the table for the matrix visual. There is an easier way if you add a conditional column into the table to tell the meaning of TNAEvent number 0,1,2,3. (E.g. Type column in the following images.)

 

In Power BI Desktop,

050709.jpg

 

Put Date in Rows, Type in Columns and Time in Values.

050710.jpg

 

The same in Report Builder:

050711.jpg050712.jpg

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @nidquival 

 

You don't need to add four columns [IN AM], [OUT AM], [IN PM], [OUT PM] into the table for the matrix visual. There is an easier way if you add a conditional column into the table to tell the meaning of TNAEvent number 0,1,2,3. (E.g. Type column in the following images.)

 

In Power BI Desktop,

050709.jpg

 

Put Date in Rows, Type in Columns and Time in Values.

050710.jpg

 

The same in Report Builder:

050711.jpg050712.jpg

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Thank you @v-jingzhang, it worked!

amitchandak
Super User
Super User

@nidquival , I doubt in report builder date is not getting aggregated. Just check the aggregation for the date in the report builder. In Power matrix values are always aggregated

@amitchandak I checked the groupings. The matrix is grouped by Date. The values, however, do not seem to be placed in just one row. 

 

Here is the matrix that needs to be fixed. The Date is the parent group, while the IN_AM, OUT_AM, IN_PM, and OUT_PM are the values.

Report Builder Table Template.jpg

 

Do note that the values IN_AM, OUT_AM, IN_PM, OUT_PM are derivations from another value, DateTime.

Report Builder SQL Query.jpg

 

Also, upon checking the matrix grouping properties, the parent group has a grouping based on the Date value.

Report Builder Table Group Properties.jpg

Aggregating the values resulted in an error since, according to Report Builder, the values have filters.

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.