Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Dears,
I have below chart prepared calculting total spend busienes unit wise comparing two years and I need to see total of 2018 vs 2019 for all business unit at the end of chart.
Solved! Go to Solution.
Suppose that you have a dataset like that
a | 1 | sum | 2018 |
b | 2 | sum | 2018 |
c | 3 | sum | 2018 |
a | 2 | sum | 2019 |
b | 3 | sum | 2019 |
c | 4 | sum | 2019 |
the "sum" values in the table were added by me with creating column in power bi
Summarized the dataset like that
sum | 6 | all | 2018 |
sum | 9 | all | 2019 |
"all" values in the table were added by me with creating column in power bi
and union this two table then i got this view. I thought it was fine for you
You can download pbix from there
Hi @shaikhshafiii,
Another approach is as follows. You can download the demo from the attachment.
1. Create a new table.
Units = UNION ( VALUES ( Table1[Unit] ), { "YearlyTotal" } )
2. Create a measure.
Measure = VAR amount = SUM ( Table1[Amount] ) RETURN IF ( ISBLANK ( amount ), CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Year] ) ), amount )
Best Regards,
Hii,
how do i sorth the month name which are just "text ", as created
Hi @shaikhshafiii,
Another approach is as follows. You can download the demo from the attachment.
1. Create a new table.
Units = UNION ( VALUES ( Table1[Unit] ), { "YearlyTotal" } )
2. Create a measure.
Measure = VAR amount = SUM ( Table1[Amount] ) RETURN IF ( ISBLANK ( amount ), CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Year] ) ), amount )
Best Regards,
I have a similar case. But if in Unit the total amount is 0 then it is shwoing the overll total for that purticular year.( For example lets take GV 2019. If the total Amount for GV 2019 is 0 then it should show as 0.
As per the above formula it will show 29 ( 2019 Yearly total) for GV 2019. I need it to be 0.
Please help.
Suppose that you have a dataset like that
a | 1 | sum | 2018 |
b | 2 | sum | 2018 |
c | 3 | sum | 2018 |
a | 2 | sum | 2019 |
b | 3 | sum | 2019 |
c | 4 | sum | 2019 |
the "sum" values in the table were added by me with creating column in power bi
Summarized the dataset like that
sum | 6 | all | 2018 |
sum | 9 | all | 2019 |
"all" values in the table were added by me with creating column in power bi
and union this two table then i got this view. I thought it was fine for you
You can download pbix from there
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |