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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Yrstruly2021
Helper V
Helper V

Displaying a Row as Fixed, when it's value needs to be manipilated

 

*I have trouble converting the data type of Column Amount in Source ABC to Decial/Numbers for this tutorial(help needed),

error con.PNG

see data source:https://drive.google.com/file/d/1VZJv8sPPYPcLiRKyO1fkEqbcsX-dz10P/view?usp=sharing .  PBIX:https://drive.google.com/file/d/1wfjbLI7nBLQU5-Qs5rGHOL2XP4uc0UR9/view?usp=sharing 

 

I am trying to include rows in a Dax calculation from a mapping table(Pivot) to a fact table(ABC). The DAX is going to look at specific rows and bring those forward. The big issue is some rows are not present in the Fact table. I also need those rows to be displayed but their values to be manipulated.

An example is row "Interco capital returned", which is not in the Fact Table(ABC), it should display a fixed value of "678"

 

 

 

TotalAmountForSelectedItems5 = 
CALCULATE(
    SUM('ABC'[Amount]),  // Corrected Column Reference
    'ABC'[Roll_Up_Function] IN {
        "Cash flow from ops - management",
        "Cash flow from trading",
        
        "Depreciation and amortisation",
        "IPEP expense",
        "Disposals & impairment of fixed assets",
        "Profit on disposal of pooling equipment",
        "Scrapped pooling equipment",
        "Impairment or valuation adjustment of pooling equipment",
        "Disposals or valuation adjustments of other fixed assets",
        "Other cash flow from trading adjustments",
        "Share-based payments expense",
        "Working capital mvts incl. provisions",
        "Working capital mvts excl. provisions",
        "Debtor movements",
        "Creditor movements",
        "Inventory movements",
        "Prepayment movements",
        "Provision movements",
        "Change in capex creditors",
        "Change in loss compensation balances",
        
        "Interco interest and guarantee fees",
        "Interco cash flows",
        "Interco royalties",
        "Statutory reallocations",
        "Internal restructuring",
        "Interco dividends Total",
        "Change in interco balances",
        "Change in interco recharge clearing",
        "FX on interco debt",
        "Interco capital returned"
    }
)

 

 

 

 

 

 

 

 

 

@amitchandak @jpessoa8 @lbendlin 

 

0 REPLIES 0

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors