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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Wangfl
Frequent Visitor

P&L Finance Report - Format problems, how to format data in Percentage and Thousand

Hello,
 
I am struggling with the Format problems. Is there any way to display the Ratio (got 9 Ratios) in P&L as a percentage, and other line items as thousands? 
 
I have tried to add DAX formula "Format()" to each item in measure [Actual], but it will poop out an error saying "cannot convert the value of type text to number"
 
Appreciate it if anyone could help me out! 🙂 Thank you guys~
 
 
Actual =
VAR PosNeg = MAX(PLStructure[Expense])
VAR Result =
CALCULATE(SWITCH(
    SELECTEDVALUE(PLStructure[Line Item ID]),
    "Net Sales",[Net Sales]*PosNeg,
    "Standard Cost",[Standard Cost]*PosNeg,
    "Total Supply Chain Variances",[Total Supply Chain Variances]*PosNeg,
    "LIFO / FIFO / Inventory Adjustments",[LIFO / FIFO / Inventory Adjustments]*PosNeg,
    "Direct Charges",[Direct Charges]*PosNeg,
    "Total Freight Expense",[Total Freight Expense]*PosNeg,
    "COGS Admin",[COGS Admin]*PosNeg,
    "Other COGS", [Other COGS]*PosNeg,
    "Gross Profit",[Gross Profit]*PosNeg,
    "Bad Debt",[Bad Debt]*PosNeg,
    "Local Selling",[Local Selling]*PosNeg,
    "Local Selling(Excl. Bad Debt)",[Local Selling(Excl. Bad Debt)]*PosNeg,
    "Region Selling",[Region Selling]*PosNeg,
    "Division Selling",[Division Selling]*PosNeg,
    "Local Marketing",[Local Marketing]*PosNeg,
    "Local R&D",[Local RD]*PosNeg,
    "Local Others",[Local Others]*PosNeg,
    "Local GA",[Local GA]*PosNeg,
    "Region GA",[Region GA]*PosNeg,
    "Corporate GA",[Corporate GA]*PosNeg,
    "Division GA",[Division GA]*PosNeg,
    "Local Shared",[Local Shared]*PosNeg,
    "Region Allocated",[Region Allocated]*PosNeg,
    "Global Allocated",[Global Allocated]*PosNeg,
    "Total SGA",[Total SGA]*PosNeg,
    "Operating Income",[Operating Income]*PosNeg,
    "LOI",[LOI]*PosNeg,
        "Ratio1",[Ratio 1],
        "Ratio2",[Ratio 2],
        "Ratio3",[Ratio 3],
        "Ratio4",[Ratio 4],
        "Ratio5",[Ratio 5],
        "Ratio6",[Ratio 6],
        "Ratio7",[Ratio 7],
        "Ratio8",[Ratio 8],
        "Ratio9",[Ratio 9]
),EPM[Scenario]="Actual")
Return
Result
Wangfl_0-1663428532226.pngWangfl_1-1663428557925.pngWangfl_4-1663429245962.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Wangfl ,

 

You can change data format directly here:

vmengzhumsft_0-1664443817900.png

vmengzhumsft_1-1664443848701.png

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Wangfl ,

 

You can change data format directly here:

vmengzhumsft_0-1664443817900.png

vmengzhumsft_1-1664443848701.png

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

daXtreme
Solution Sage
Solution Sage

This is how you should properly create a P&L statement in Power BI.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors