Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, everybody!
I'd like to know if is possible to do a bar chart in Power BI like the image below.
I have a bar whose data is the cumulative of the year 2016 and then I have others bars whose data are the sum of each month of 2017. Is there anyway to freeze the first bar (2016) on the bar chart?
Best regards,
Marcela.
Solved! Go to Solution.
Hi @marcelammelo,
We need to create a summarized for year 2016 to return total value for all months in year 2016, then union this table with the table which has month values.
Assume the fact data likes below:
You can create another table with DAX:
Table = UNION(SUMMARIZE('Table1','Table1'[Year],"Amount",SUM('Table1'[Amount])),SUMMARIZE('Table1','Table1'[MonthName],"Amount",SUM('Table1'[Amount])))
Then create a column chart, drag Year column to Axis, Amount to Values. For details, you can download the attached pbix file to have a look.
Best Regards,
QiuyunYu
Hi @marcelammelo,
We need to create a summarized for year 2016 to return total value for all months in year 2016, then union this table with the table which has month values.
Assume the fact data likes below:
You can create another table with DAX:
Table = UNION(SUMMARIZE('Table1','Table1'[Year],"Amount",SUM('Table1'[Amount])),SUMMARIZE('Table1','Table1'[MonthName],"Amount",SUM('Table1'[Amount])))
Then create a column chart, drag Year column to Axis, Amount to Values. For details, you can download the attached pbix file to have a look.
Best Regards,
QiuyunYu
Hello, @v-qiuyu-msft!
That's amazing! You're awesome!
Thanks a lot for the solution and example. You made it easier than I could imagine.
You really helped me.
Regards,
Marcela.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
64 | |
63 | |
52 | |
39 | |
24 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |