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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

How to make this ISNOT function working

Hello, I have those two measured colums which counts the number of logements by a certain date, in the first case i want to keep only rows not null, on the other one i keep all "date promesse de vente réelles" rows

Unfortunetly the result is the same in the both case so i guess the first measured colum isnt working, any idea to fix it?

 

First measured column = 

Logements par promesse réelle vide =
CALCULATE(
'Opérations'[Nb de logements],
FILTER('Dates réelles', 'Dates réelles'[date promesse de vente réelles]))



Second measured column: 

 

Logements par promesse réelle non vide =
CALCULATE(
'Opérations'[Nb de logements],
FILTER('Dates réelles', 'Dates réelles'[date promesse de vente réelles] <> BLANK()))

 

 

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Try this:

SomeMeasure =
CALCULATE(
    'Opérations'[Nb de logements],
    FILTER(
        'Dates réelles',
        NOT ISBLANK( 'Dates réelles'[date promesse de vente réelles] )
    )
)

 

You cannot use <> BLANK() as that will also exclude 0. You can use ==BLANK() if you want to differientate with =0, but I don't know how to do that for not equal, but NOT ISBLANK() works.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks you by a lot!

I have now my 4 measurements that i wanted :


Logements par promesse non vide =
CALCULATE(
'Opérations'[Nb de logements],
FILTER(
'Dates réelles',
NOT ISBLANK( 'Dates réelles'[date promesse de vente réelles] )
)
)
 
Logements par agréments recalés non vides =
CALCULATE(
'Opérations'[Nb de logements],
FILTER(
'Dates recalées',
NOT ISBLANK( 'Dates recalées'[Agréments] )
)
)
 
Logements par OS non vide =
CALCULATE(
'Opérations'[Nb de logements],
FILTER(
'Dates recalées',
NOT ISBLANK( 'Dates recalées'[OS / VEFA])
)
)
 
Logements par réception non vide =
CALCULATE(
'Opérations'[Nb de logements],
FILTER(
'Dates recalées',
NOT ISBLANK( 'Dates recalées'[Réceptions])
)
)
 
 
But do you know how i can summ it?
 I tried:
total logements test = 'Dates réelles'[Logements par promesse non vide] + 'Dates recalées'[Logements par OS non vide] = 'Dates recalées'[Logements par agréments recalés non vides]+ 'Dates recalées'[Logements par réception non vide]
 
But i have for result : "False" and I can't use "SUM" because i have too much measurements to calculate

Any idea?

 

 

edhans
Super User
Super User

Try this:

SomeMeasure =
CALCULATE(
    'Opérations'[Nb de logements],
    FILTER(
        'Dates réelles',
        NOT ISBLANK( 'Dates réelles'[date promesse de vente réelles] )
    )
)

 

You cannot use <> BLANK() as that will also exclude 0. You can use ==BLANK() if you want to differientate with =0, but I don't know how to do that for not equal, but NOT ISBLANK() works.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.