Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Klik
Frequent Visitor

Power Bi: Bar Chart Custom Visualization

Klik_1-1736130117527.png

 

Hi all,

I am running out of ideas on how to make my visualization meet the requirements.

The requirement is to display only Revenue bar starting from column Balance Committed, and the rest should include all three (Revenue, TP Cost, Profit and Loss). The data source is coming from the same Excel file.

Below shows the excel table for their data source as your reference:

 

NoDescriptionREVENUEMaterialSubcontractDirect ExpensesTotal Production CostWorking ContigencyOverheadWarrantyMgmt ContigencyPROFIT/LOSS
1Working Budget0000000000
4Incurred 0000000000
5Balance Committed0000000000
3Total Committed0000000000
6Balance Cost to Complete0000000000
2Current Forecast0000000000

 

 

3 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @Klik  -  you can approach this problem with conditional formatting and DAX measures in Power BI.

Create separate measures for each category (Revenue, TP Cost, Profit and Loss) with logic to display values conditionally based on the columns.

Revenue_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Committed", "Incurred", "Total Committed"},
SUM(YourTable[REVENUE]),
BLANK()
)

 

create another measure, TP_Cost_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Cost to Complete", "Current Forecast", "Working Budget"},
SUM(YourTable[Total Production Cost]),
BLANK()
)

 

last measure for, 

Profit_Loss_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Cost to Complete", "Current Forecast", "Working Budget"},
SUM(YourTable[PROFIT/LOSS]),
BLANK()
)

 

In your Power BI visual, use stacked column chart or clustered column chart.Add the Description column to the axis.Add the conditional measures (e.g., Revenue_Display, TP_Cost_Display, Profit_Loss_Display) to the values field.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

Anonymous
Not applicable

hi @Klik ,

 

 

Revenue_Display = SUM('Table'[REVENUE])

 

For the rest of the code refer to the example given by Rajendra.

vcgaomsft_0-1736214068887.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

Klik
Frequent Visitor

Thank you so muchh Sir @rajendraongole1 you're the best! 

View solution in original post

5 REPLIES 5
Klik
Frequent Visitor

Thank you so muchh Sir @rajendraongole1 you're the best! 

Happy to help @Klik !!

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

hi @Klik ,

 

 

Revenue_Display = SUM('Table'[REVENUE])

 

For the rest of the code refer to the example given by Rajendra.

vcgaomsft_0-1736214068887.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Reeeally appreciate your guidance, thank you so muchhh.. You're the best!
rajendraongole1
Super User
Super User

Hi @Klik  -  you can approach this problem with conditional formatting and DAX measures in Power BI.

Create separate measures for each category (Revenue, TP Cost, Profit and Loss) with logic to display values conditionally based on the columns.

Revenue_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Committed", "Incurred", "Total Committed"},
SUM(YourTable[REVENUE]),
BLANK()
)

 

create another measure, TP_Cost_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Cost to Complete", "Current Forecast", "Working Budget"},
SUM(YourTable[Total Production Cost]),
BLANK()
)

 

last measure for, 

Profit_Loss_Display =
IF(
SELECTEDVALUE(YourTable[Description]) IN {"Balance Cost to Complete", "Current Forecast", "Working Budget"},
SUM(YourTable[PROFIT/LOSS]),
BLANK()
)

 

In your Power BI visual, use stacked column chart or clustered column chart.Add the Description column to the axis.Add the conditional measures (e.g., Revenue_Display, TP_Cost_Display, Profit_Loss_Display) to the values field.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors