The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have a data table like this :
I want to create a new table with the total (direct + toller) for each year (2021 and 2022)
And the percentage of direct (direct value / direct value + toller value)
The table I need is this :
If someone can help me, thanks in advance !
Solved! Go to Solution.
Hello @Anonymous
I have used the following sample data:
And created following measures:
Hope this helps
Create the following measures for the matrix:
Sum Valeur = SUM(FactTable[Valeur])
% Drying Direct =
VAR Direct =
CALCULATE (
[Sum Valeur],
FILTER ( FactTable, FactTable[Category] = "Drying Direct" )
)
RETURN
IF (
ISINSCOPE ( FactTable[Country] ),
BLANK (),
DIVIDE ( Direct, [Sum Valeur] )
)
Create the matrix with the Year in rows, the country in columns and add both measures. Then do the following:
Proud to be a Super User!
Paul on Linkedin.
Hello @Anonymous
I have used the following sample data:
And created following measures:
Hope this helps
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |