Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Removing Nulls from Only One Parameter Field

Hello, I have the following code for a Field Parameter I created in Power BI:  Production Role = { ("Product Engineer", NAMEOF('Assignment'[Product Engineer]), 0), ("Intern", NAMEOF('Assignme...
  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    Hi Anonymous 
    To achieve a goal you can take these few steps :

    1 With power query replace "blanks " with null (until you do it the engine of pbi does not recognize these cells as blanks.

    2. After creating field parameters add to the parameters table another column with the parameter name to have an ability to create conditions with it 

    3 . Create a flag measure that will check which parameter was selected and if it is blank:

    test_intern = if(SELECTEDVALUE('Parameter'[Test parametr])="Intern" && ISBLANK(max('Table'[Intern])),1,0)

    4. Use this measure to filter the visual

    pbix is attached

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