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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
JamesBurke
Helper III
Helper III

Connected

Hi All , 

 

Struggling with some basic dax. 

 

I have a measure 

onnected Status = 
IF(
ISBLANK([Working Days in This Period]) || ISBLANK([Working Days in This Period 2]),
BLANK(),
IF([Days Missed] >= 1, "Not Connected", "Connected")
)

 

Days Missed = [Working Days in This Period 2] - [Working Days in This Period]

 

So working days in this period is a date diff from there indivudal meters from start to end date , the working in this period 2 is the start to end date of the table. 

 

This allows me to do working days in this period 2 - working days in this period and if it is above or equal to 1 there is missing data. 

 

Connected = CALCULATE(DISTINCTCOUNT('National Grid Data'[Meter Name (groups)]), FILTER('National Grid Data' , [Connected Status] = "Connected"))

 

Not Connected new = CALCULATE(DISTINCTCOUNT('National Grid Data'[Meter Name (groups)]) , FILTER('National Grid Data',[Connected Status] = "Not Connected"))

 

JamesBurke_0-1732013454204.png

 

So from the above example it should day one is not connected however it says none are and that all devices are connected ?

 

Any help would be appericated,

 

 

Thanks , James.

1 REPLY 1
danextian
Super User
Super User

Hi @JamesBurke 

 

As always, please post a workable sample data - not an image, a link to an excel file, etc - and your expected result from that.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.