Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have some tables set up like this:
I need to see whether meter reads are being submitted on time. Linking _site to _meter to _reading was too much for my tiny brain to comprehend so I merged the queries via site id.
This formula that I first thought was genius is now fast becoming the bane of my life:
The last filter about b2c meter >0 is a recent addition to try to solve the issue.
It is doing what it says on the tin but it is placing a '1' in each occurence of the site (sites indeed have multiple active meters):
My end goal is to see what percentage of customers submit 1,2,3 or 4 times a year but the first step is getting some baseline numbers about number of active/inactive sites and meters.
Thanks in advance.
Does this work:
b2c_site_active = CALCULATE( DISTINCTCOUNT('psa FIT_B2C_meter'[SiteID]), ('psa FIT_B2C_meter'[site.ContractTerminationDate] > NOW() || ISBLANK('psa FIT_B2C_meter'[site.ContractTerminationDate])) && ('psa FIT_B2C_meter'[site.ClosedDate] > NOW() || ISBLANK('psa FIT_B2C_meter'[site.ClosedDate])), 'psa FIT_B2C_meter'[b2c_meter_active] > 0 )
Best regards,
Johannes
User | Count |
---|---|
81 | |
75 | |
70 | |
42 | |
36 |
User | Count |
---|---|
114 | |
56 | |
52 | |
43 | |
42 |