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.
Hi,
I have a many to many relation in my power bi desktop data model.
i have a summary table that has column invoice_no matches to sales table invoice_no column with active relationship and has many to many relation. This table i can't but has to be in this data model otherwise my result comes wrong.
the problem is,
I have customer table that has column store_Id column matches to sales table store_ID column with an in-active relationship and has one to many relation
N.B. I created third table in between customer and sales table but when i join sales to third table it still take many to many relation
So i use userelationship to active this in-active relation between customer and sale
I have employee table that has one to one relation with customer table using employee_code. but if I join employee table to sales table it takes many to many relation So i keep relation with customer table
Now The measure I try to create
Solved! Go to Solution.
Hi @amitchandak ,
Your measure without USERELATIONSHIP formula I got following result
here is you see is, (2.61/2088.32) * 100 = 0.12% and same as other rows
@abc_777 , Try like
% of Total Sale (CONCATANATEX Assignment) =
VAR AllExceptQuantity=
CALCULATE(
[Total Sale (Taka) (Measure)],
filter(ALL('bm_retail_t employee')
'bm_retail_t employee'[EMPCODE_NAME_Conca] = max('bm_retail_t employee'[EMPCODE_NAME_Conca])
))
VAR Ratio=
DIVIDE(
[Total Sale (Taka) (Measure)],
AllExceptQuantity,
BLANK()
)
RETURN
Ratio
Hi @amitchandak ,
Your measure without USERELATIONSHIP formula I got following result
here is you see is, (2.61/2088.32) * 100 = 0.12% and same as other rows
I am trying to acheive Marketing personwise sales percentage. anyone has any idea with data model that i have given. I know the dababase design is very poor but data base is not in my hand i can't do much. so please help me out to find the solution form this data model
thx
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |