Why not working this measure?
Solved! Go to Solution.
Hi @Analitika ,
Based on my test, you just need to modify "ALL(_op[Clients])" to "ALL(_op)".
m_CountOfCompanies = CALCULATE(DISTINCTCOUNTNOBLANK(_op[Company]),ALL(_op))
m_CountOfClients = CALCULATE(DISTINCTCOUNTNOBLANK(_op[Clients]),ALL(_op))
Best Regards,
Jay
Hi @Analitika ,
Based on my test, you just need to modify "ALL(_op[Clients])" to "ALL(_op)".
m_CountOfCompanies = CALCULATE(DISTINCTCOUNTNOBLANK(_op[Company]),ALL(_op))
m_CountOfClients = CALCULATE(DISTINCTCOUNTNOBLANK(_op[Clients]),ALL(_op))
Best Regards,
Jay
Hi, @Analitika , pls keep in mind that filters propogate along with relationships, if any, among tables in the data model.
m_CountOfClients =
CALCULATE ( DISTINCTCOUNTNOBLANK ( _op[Clients] ), ALL ( _op[Clients] ) )
Even if filters on _op[Clients] were removed by ALL(), filters from other matrix on other columns in table _op remain effective; which in turn affect the calculation of DISTINCTCOUNTNOBLANK().
@Analitika , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Proud to be a Super User!
Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
464 | |
184 | |
118 | |
62 | |
52 |
User | Count |
---|---|
443 | |
169 | |
129 | |
77 | |
74 |