Forum Discussion
Margin % calculation with same name and multiple rows
Anonymous Thanks for your solution .. here the challenge is we have done an unpivot column method in few selected columns , so after that all the accounts were duplicated (27 rows each) . so i have used DISTINCT in the "Total YTD Revenue" measure to filter the single unique revenue numbers .
In this case we have same values for both the accounts (same account name also) , so that it is not summing up and giving unique values. only different thing in this each row is "Offer Type" column.
Existing DAX :
Here cannot able to use ALLEXCEPT like your code..
Hi Anonymous
Could you please provide some sample data that maintains the same data structure? And describe which columns you are selecting for the unpivot operation.
Thank you in advance for your cooperation.
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.