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
alexbalazsalex
Helper IV
Helper IV

Urgent Support for matrix table

to do.PNG

 

Dear all .. not very good with Power Bi and need your support to re create the above table in matrix table :

 

Bellow is may data :

 

Year_MonthProductCustomerReal PCSBdg PCSInvoicing US$Invoice BDG US$Margin US$Margin BDG US$
10/1/2017PlanesTK MAXX2.5003.25417.500.00019.351.53812.500.00016.367.620
10/1/2017CarsPEPCO3.2452.4569.735.0006.849.7843.894.0002.846.504
10/1/2017YahtsAUCHAN1.2671.1007.602.0006.422.9003.420.9003.131.700
10/1/2017PlanesTOYS R US4.5673.49731.969.00020.796.65922.835.00017.589.910
11/1/2017CarsTOYS R US9.8089.70729.424.00027.072.82311.769.60011.250.413
11/1/2017CarsAUCHAN54.44350.000163.329.000139.450.00065.331.60057.950.000
11/1/2017YahtsTOYS R US33.42233.400200.532.000195.022.60090.239.40095.089.800
12/1/2017CarsAUCHAN34.56735.000103.701.00097.615.00041.480.40040.565.000
12/1/2017YahtsTOYS R US55.65655.050333.936.000321.436.950150.271.200156.727.350
12/1/2017PlanesPEPCO343.432234.5692.404.024.0001.394.981.8431.717.160.0001.179.882.070
1/1/2018PlanesPEPCO3.4534.53524.171.00026.969.64517.265.00022.811.050
1/1/2018CarsTK MAXX32.43220.00097.296.00055.780.00038.918.40023.180.000
1/1/2018YahtsTK MAXX2.3453.23214.070.00018.871.6486.331.5009.201.504
11/1/2017PlanesTOYS R US23.43523.245164.045.000138.238.015117.175.000116.922.350
11/1/2017PlanesPEPCO34.23435.000239.638.000208.145.000171.170.000176.050.000
10/1/2017CarsTK MAXX43.43544.000130.305.000122.716.00052.122.00050.996.000
11/1/2017PlanesAUCHAN432.323440.0003.026.261.0002.616.680.0002.161.615.0002.213.200.000
11/1/2017YahtsPEPCO233.434230.0001.400.604.0001.342.970.000630.271.800654.810.000
11/1/2017CarsTK MAXX2.243.4322.340.0006.730.296.0006.526.260.0002.692.118.4002.712.060.000
12/1/2017PlanesTOYS R US24.34224.452170.394.000145.416.044121.710.000122.993.560
11/1/2017YahtsTK MAXX2422001.452.0001.167.800653.400569.400
12/1/2017PlanesPEPCO4.2244.00029.568.00023.788.00021.120.00020.120.000
12/1/2017PlanesTK MAXX2.342.4232.345.00016.396.961.00013.945.715.00011.712.115.00011.795.350.000
12/1/2017CarsTOYS R US34.24233.000102.726.00092.037.00041.090.40038.247.000
12/1/2017CarsPEPCO24.23323.23072.699.00064.788.47029.079.60026.923.570
1/1/2018CarsAUCHAN24.32432.32472.972.00090.151.63629.188.80037.463.516
12/1/2017YahtsTOYS R US54.45455.000326.724.000321.145.000147.025.800156.585.000
12/1/2017PlanesTK MAXX53.45347.000374.171.000279.509.000267.265.000236.410.000
1/1/2018PlanesTOYS R US3244002.268.0002.378.8001.620.0002.012.000
1/1/2018YahtsTK MAXX235.235230.0001.411.410.0001.342.970.0005.005654.810.000
1/1/2018CarsTOYS R US2.3422.5007.026.0006.972.5002.810.4002.897.500
1/1/2018PlanesTK MAXX2.3542.40016.478.00014.272.80011.770.00012.072.000
1/1/2018YahtsAUCHAN2343451.404.0002.014.455631.800982.215
1/1/2018CarsTOYS R US2.3442.3247.032.0006.481.6362.812.8002.693.516

 

-For Price US$/Pcs create a measure ? Sum(Invoicing US$)/Sum(Real Pcs) the same for BDG

 sum(Invoice BDG US$)/sum(Bdg Pcs).

Delta new column + Real US$/Pcs-BDG Pcs

Same for Gross MArgin:

-Weight of Margin on invoicing :

Measure: MArgin US$/Invoicing US$ - same for BDg and Delta to be difference.

-TO show in Table Th Pcs - Do we have to create a new column with new calculation ? Real Pcs/1000?

Mill USD Table Th Pcs - Do we have to create a new column with new calculation ? Invoicing US$/1000000.

 

The Visualisation on dashbord is important to show the same info as shown.

 

Please Help

 

Many Thanks

1 ACCEPTED SOLUTION

Hi @alexbalazsalex,

 

You can do the grouping base on the column in two ways:

 

1. Advance Query Editor

  • Add conditional column and place the following code:

query_editor.png

 

2. In front end

  • Select the column you and and right click or ... and choose New group
  • On the next window select the value to group and choose the names
  • Then add this to the columns in the matrix.

Grouping.png

 

In attach is the PBIX file for download (this is a WeTransfer and it's only available 7 days)

 

Any further questions please tell me.

 

And sorry for the delay.

 

Regards,

MFelix 

 

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

14 REPLIES 14

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.