Forum Discussion
Power Bi: Bar Chart Custom Visualization
- 1 year ago
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.
- Anonymous1 year ago
hi Klik ,
Revenue_Display = SUM('Table'[REVENUE])For the rest of the code refer to the example given by Rajendra.
Best Regards,
Gao
Community Support TeamIf 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
- 1 year ago
Thank you so muchh Sir rajendraongole1 you're the best!
hi Klik ,
Revenue_Display = SUM('Table'[REVENUE])
For the rest of the code refer to the example given by Rajendra.
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
- Klik1 year agoFrequent Visitor
Reeeally appreciate your guidance, thank you so muchhh.. You're the best!