Specified Values in DAX formula

  • Specified Values in DAX formula

    Posted by DSC Communities on April 22, 2020 at 1:18 pm
    • Saad L.

      Member

      April 22, 2020 at 1:18 PM

      Hello there,

      I want to use the dax FILTER function to search for values ??in the form “GMXXX”, or which starts with “GM”.

      How could i do that?

      FILTER(MarketSales;MarketSales[Country]=”GMXXX”) ?

      Thank you in advance

      ——————————
      Saad L.
      ——————————

    • Eric Lofstrom

      Member

      April 22, 2020 at 2:03 PM

      Saad –Ā 
      You’ve almost got it – just use a comma instead of a semicolon and the LEFT function to get anything starting with “GM”.
      So FILTER(MarketSales, LEFT(MarketSales[Country], 2) = “GM”)).
      Of course, FILTER returns a table so you’ll need to do something with it like COUNTROWS or something like that.
      Eric

      ——————————
      Eric Lofstrom
      Principal
      BlueGranite Inc.
      elofstrom@blue-granite.com
      Join me each month for Power BI Office Hours!
      https://www.blue-granite.com/power-bi-office-hours
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Specified Values in DAX formula’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!