Forum Discussion

Re: Issue with the parameters in the Power BI App published for outside the organization

Dear All,

I have data which contains monthly sales values, in this you have the month the product name ( unique) / the vendor code / and the sales amount. In another table i have the dimcodes where it bifurcates the product further into categories and the vendor code into type of distributors, The issue is i get the total correct using the formula ( mentioned below) but then i put the category in the matrix the total does not match. 

ProductDistributor 1Distributor 2Distributor 3Distributor 4Distributor 5Total of thisThis total is correct . 
product 1474213492991111541200
product 23249386232169671006

 

Tables 1 ( which has the main data is ). Please note the dates are the same but each row item had product and vendor name, and keeps changing for eg in one line item we may have product 1 and vendor 1 in the second line we may have product 2 and vendor 1 and so on.

MonthProductVendor codeSales
31-12-2025product 1vendor 1100
31-12-2025product 2vendor 2200
31-12-2025product 3vendor 3300
31-12-2025product 4vendor 4400
    
31-12-2025product 1vendor 4500
31-12-2025product 2vendor 3600
31-12-2025product 3vendor 2700
31-12-2025product 4vendor 1800
    
31-12-2025product 4vendor 3200
31-12-2025product 3vendor 1250
31-12-2025product 2vendor 4300
31-12-2025product 1vendor 2600

Other table has dim codes like this

category for productsMain Category
product 4Books
product 3Books
product 2Pens
product 1Pens
  
category for VendorsMain Category
vendor 3Cat 2
vendor 1Cat 1
vendor 4Cat 2
vendor 2Cat 3

 

Dax measures for total sales is 

CALCULATE(sum(table1(sales), DATESMTD(DIMDatesQ[EOM])). I tried using sumx but gives and error.
 
Requesting your assitance please

 

5 Replies