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
Duffy_Ibru
Frequent Visitor

Urgent Support for matrix table

Please i am new to dax functions.  i am trying to achive the below template reports on powerbi. 

 

I Have done calculated colums for LG,Samsung and nexus seperately. that is to say i have the sum of each product posted to my chart of accounts.  

 

However i do not know how to return the qualitative aspect of my template, which is revenue, haulage etc for each of the product.

 

This is my dax;

 

LG = (CALCULATE(SUM('General Ledger Entries'[Amount]),FILTER('Chart of Account',' Chart of Account'[No]=5000100))

 LGSAMSUNGNEXUSTOTAL
 NGN'000NGN'000NGN'000NGN'000
Revenue                           20,000 65,00020,000105,000
Actual cost of goods sold                             (1)                                 -                               (0)                          (1)
Other export cost                      31,654                         (31,654)                           (0)
Haulage                             (0)                             -                            (0)
Freight on export sales                             (0)                                 -                             (0)
Gross profit / (loss)                      31,653-31,654                             (0)                          (1)
    0
SALES MIX (%)57.14%14.29%28.57%100.00%
     
GROSS PROFIT/(LOSS) RATIO==>> -791324775.00%3165400100.00%0.00%14485.71%
4 REPLIES 4
Phil_Seamark
Employee
Employee

Hi @Duffy_Ibru

 

We probably need to learn a little more about your data model.

 

YOu say you don't know how to do Revenue for LG, but your sample set of data shows 20,000.  Is this wrong?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

yes u re correct.  i have done calculated colums to return the value of each of my products. 

 

i select the matrix visual and put each calcuted column on column 

 

Revenue LGRevenue Samsung Revenue Nexus Freight LG Freight SamsungFreight Nexus
     20,000.00                    65,000.00              20,000.00   10,000.00               20,000.00            5,000.00

 

 

However, i want the visual to appear like this;

 

 

 LGSamsungNexus Total 
Revenue                    20,000.00              65,000.00   20,000.00            105,000.00
Freight                     10,000.00              20,000.00     5,000.00               35,000.00

 

 

 

Please i am new to dax functions.  i am trying to achive the below template reports on powerbi. 

 

I Have done calculated colums for LG,Samsung and nexus seperately. that is to say i have the sum of each product posted to my chart of accounts.  

 

However i do not know how to return the qualitative aspect of my template, which is revenue, haulage etc for each of the product.

 

This is my dax;

 

LG = (CALCULATE(SUM('General Ledger Entries'[Amount]),FILTER('Chart of Account',' Chart of Account'[No]=5000100))

 LGSAMSUNGNEXUSTOTAL
 NGN'000NGN'000NGN'000NGN'000
Revenue                           20,000 65,00020,000105,000
Actual cost of goods sold                             (1)                                 -                               (0)                          (1)
Other export cost                      31,654                         (31,654)                           (0)
Haulage                             (0)                             -                            (0)
Freight on export sales                             (0)                                 -                             (0)
Gross profit / (loss)                      31,653-31,654                             (0)                          (1)
    0
SALES MIX (%)57.14%14.29%28.57%100.00%
     
GROSS PROFIT/(LOSS) RATIO==>> -791324775.00%3165400100.00%0.00%14485.71%

Hi @Duffy_Ibru,

 

Can you give some further details or example of your data? To help you bettwe without further information is difficult.

 

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



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.