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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
adnankabina
Helper II
Helper II

can we show two matrix in one as I did in Excel

Hello I need your help. Is it possible in power what i have created in Excel. One matirx with % and other marix with numbers and shows grand total at bottom. Attached is picture.  

 

adnankabina_0-1713537447351.png

 

2 ACCEPTED SOLUTIONS

Perfect - these are what you will put into your calculation group

OTA% = [OTA%] and use the dynamic formatting to make it be % ('#.#%')

Deliveries = [Deliveries]




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

v-xinruzhu-msft
Community Support
Community Support

Hi,

Thanks for the solutions @Johnndan  and @audreygerred  provided, and i want to offer some more information for user to refer to.

hello @adnankabina , based on your description, you can refer to the following solution.

Sample data 

vxinruzhumsft_0-1713837957080.png

Sample measure

 

OTA% = DIVIDE(SUM('Query1'[Value]),CALCULATE(SUM('Query1'[Value]),ALLEXCEPT('Query1','Query1'[ID])))
Deliveries = SUM('Query1'[Value])

 

1.You can create a new table called it type, like the following, then select the name column and select sort by index column.

vxinruzhumsft_1-1713838057519.png

vxinruzhumsft_5-1713838663987.png

2.Create a Result measure.

 

Result = SWITCH(SELECTEDVALUE('Type'[Name]),"OTA%",[OTA%],[Deliveries])

 

Then click the format in measure tools to dynamic.

vxinruzhumsft_0-1713842377010.png

Then input the follwing code.

IF(SELECTEDVALUE('Type'[Name])="OTA%","0.00%")

vxinruzhumsft_3-1713842671806.png

 

And you can refer to the following link about the dynamic format.

Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn

3.Put the following field to the matrix

vxinruzhumsft_2-1713842455620.png

4.In property of the matrix, set the position of row subtotal to bottom.

vxinruzhumsft_3-1713838315584.png

Output

vxinruzhumsft_4-1713838327201.png

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

9 REPLIES 9
v-xinruzhu-msft
Community Support
Community Support

Hi,

Thanks for the solutions @Johnndan  and @audreygerred  provided, and i want to offer some more information for user to refer to.

hello @adnankabina , based on your description, you can refer to the following solution.

Sample data 

vxinruzhumsft_0-1713837957080.png

Sample measure

 

OTA% = DIVIDE(SUM('Query1'[Value]),CALCULATE(SUM('Query1'[Value]),ALLEXCEPT('Query1','Query1'[ID])))
Deliveries = SUM('Query1'[Value])

 

1.You can create a new table called it type, like the following, then select the name column and select sort by index column.

vxinruzhumsft_1-1713838057519.png

vxinruzhumsft_5-1713838663987.png

2.Create a Result measure.

 

Result = SWITCH(SELECTEDVALUE('Type'[Name]),"OTA%",[OTA%],[Deliveries])

 

Then click the format in measure tools to dynamic.

vxinruzhumsft_0-1713842377010.png

Then input the follwing code.

IF(SELECTEDVALUE('Type'[Name])="OTA%","0.00%")

vxinruzhumsft_3-1713842671806.png

 

And you can refer to the following link about the dynamic format.

Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn

3.Put the following field to the matrix

vxinruzhumsft_2-1713842455620.png

4.In property of the matrix, set the position of row subtotal to bottom.

vxinruzhumsft_3-1713838315584.png

Output

vxinruzhumsft_4-1713838327201.png

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Johnndan
New Member

I am not expert in it but creating matrices with percentages and numbers in Power Query is achievable. You can use Power Query to transform your data and calculate percentages, then use Power Pivot or Power BI to create matrices and display grand totals. 
Hope this helps..

audreygerred
Super User
Super User

Hello! Yes, you can create this in Power BI in a matrix utilizing a calculation group and your dimension. In the below screenshot, my calculation group and the dim of category is in Rows. In my example of the calculation group I have Time Intelligence measures, but you can use whatever measures you want. You can see that in teh same matrix I have some items showing as a %. Here is an article I wrote about creating calculation groups (this was before you could natively do them in Power BI desktop through the modeling tab as long as you have the preview feature enabled, but the method is very similar): http://powerbiwithme.com/2023/08/10/the-calculation-group-edition/ 

 

audreygerred_0-1713538203609.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





format is different but it will work. Thanks, what I wanted % value on top and numbers should be at botoom

I shown in my first picture above

adnankabina_0-1713538937282.png

 

It's all just in how you choose to arrange the items in your calculation group (I happened to have my % measure last, but you can put yours in any order that you want). I have re-arranged my order so that the % for YoY is now on top:

audreygerred_0-1713539301123.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I have not created any measure. I will appreicate if you forward your measure to get some idea how you did. Thanks

What is your formula for deriving OTA% and Deliveries? 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





OTA% = IF(SUM(Query1[OTA_KEYED])=0, "", 1-
DIVIDE(SUM('Query1'[LATE]), SUM('Query1'[OTA_KEYED])))
 
Deliveries= SUM(Query1[DELIVERY_NUMBER])

Perfect - these are what you will put into your calculation group

OTA% = [OTA%] and use the dynamic formatting to make it be % ('#.#%')

Deliveries = [Deliveries]




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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