Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I am attempting to recreate a Tableau dashboard and the data that was provided to me is in a pivot format. I've managed to unpivot the columns Revenue, Cost, Profit and % of Profit for the matrix table. The issue I am facing is that the column, % of profit is summing up rather than returning the single value for a given team and month. Is there a way to prevent the % of profit from summing? Any advice / tips would be greatly appreciated.
Solved! Go to Solution.
Hello @NedFlanders01
You can write a measure to calculate the % of profit correctly:
% of Profit Measure = VAR RevenueSum = SUM ( table[Revenue] ) VAR ProfitSum = SUM ( table[Profit] ) RETURN DIVIDE ( ProfitSum, RevenueSum )
Hello @NedFlanders01
You can write a measure to calculate the % of profit correctly:
% of Profit Measure = VAR RevenueSum = SUM ( table[Revenue] ) VAR ProfitSum = SUM ( table[Profit] ) RETURN DIVIDE ( ProfitSum, RevenueSum )
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |