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.
So I've got the below table imported.
Name | Region | Project Name | Total MRR | Total Hours |
Andy | US | 100 | 5 | |
Trevor | UK | 200 | 10 | |
Andy | US | 300 | 15 | |
Trevor | UK | 400 | 20 | |
Sandy | US | 500 | 25 |
I then want to be able to create a calculated table that will come out as below
Region | Name | Total MRR | Total Hours |
US | Andy | 400 | 20 |
UK | Trevor | 600 | 30 |
US | Sandy | 500 | 25 |
So I basically just want ot pivot up the totals of each person.
I'm new to Power BI so don't know where to start
Thanks,
Solved! Go to Solution.
If you did specifically want a calculated table you could do this:
SummaryTable =
SUMMARIZECOLUMNS(
MainTable[Region],
MainTable[Name],
"Total Hours", CALCULATE ( SUM ( MainTable[Total Hours] ) ),
"Total MRR", CALCULATE ( SUM ( MainTable[Total MRR] ) )
)
Hi,
It looks like you want a visual and not a calculated table. If that is the case, do this. To your Table/matrix visual, drag Region and Name. Write these measures:
MRR total = sum(Data[Total MRR])
Hours = sum(Data[Total hours])
Hope this helps.
Thanks Asish, but I then want to be able to put this into a line chart to show progression over time, which wouldnt work with this would it?
Hi,
For that you must have a Date column in your dataset as well.
If you did specifically want a calculated table you could do this:
SummaryTable =
SUMMARIZECOLUMNS(
MainTable[Region],
MainTable[Name],
"Total Hours", CALCULATE ( SUM ( MainTable[Total Hours] ) ),
"Total MRR", CALCULATE ( SUM ( MainTable[Total MRR] ) )
)
Now i've got another table that's got Q1, Q2, Q3, Q4 row data in how would I bring that into this? Call it table2 and its as below
Name | Quarter | MRR Quota | Hours Quota |
Andy | Q1 | 1000 | 50 |
Andy | Q2 | 2000 | 50 |
Andy | Q3 | 3000 | 50 |
Andy | Q4 | 4000 | 50 |
This is perfect, thank you
Hi,
Do you specifically need a calculated table or just want a visual to display a table like that?
If the later just drop the columns into a table visual like this:
Power Bi by will guess what agregation you want for a numeric column but you can check it by clicking the down arrow on a field after you drop it into a viusal:
Can send the DAX over if you specifically want a calculated table.
Hi,
I forgot to include the date columns that i'll also have (Q1, Q2, Q3, Q4) which I then want to be able to show in a line chart. Which I don't think I can do via this method?
Can you mock up a demo pbix file and send it. Think even bringing dates in you can keep it simple maybe with the addition of a date table. Might be missing something though.
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |