+ Reply to Thread
Results 1 to 2 of 2

How do I put a formula in PowerBI?

  1. #1
    Registered User
    Join Date
    04-01-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    42

    How do I put a formula in PowerBI?

    Hello

    I loaded an excel file on powerbi and I want to create a column where I want to run a formula (if column1 = Something1 and Column2 > Column3, then display Column4).

    I have not clue how to do this. I click to create a New Custom Column and it it says to enter the column formula, but I start typing IF and nothing comes up!

    How can there is no IF in the available formula syntax???

    Thanks!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How do I put a formula in PowerBI?

    There are two parts to Power BI - the Query Editor (Power Query, which uses M language to import and transform data), and the Data Model (where you can add Calculated Columns and Measures to your data model, using DAX language).

    Are you trying to add your column in the Query Editor (M) or to the table in the data model (DAX) ?

    There are IF functions available in both languages, but the syntax is quite different!
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Import financial data into Excel or PowerBI
    By ErkErt in forum Excel General
    Replies: 3
    Last Post: 07-19-2019, 02:04 AM
  2. Replies: 0
    Last Post: 03-15-2018, 10:27 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1