Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I want to create a DAX function to find employee count with both On-Premise and On-Clound Source via Status Column.
Please help me.
Solved! Go to Solution.
Hi, @Anan ;
You could create meaure as follows:
count = CALCULATE(DISTINCTCOUNT('Table'[Source]),FILTER(ALLEXCEPT('Table','Table'[EmpID]),([Source]="On Cloud"&&[Status]=1)||([Source]="On Premise"&&[Status]=1)))both = COUNTROWS(SUMMARIZE(FILTER('Table',[count]=2),[EmpID]))
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anan ;
You could create meaure as follows:
count = CALCULATE(DISTINCTCOUNT('Table'[Source]),FILTER(ALLEXCEPT('Table','Table'[EmpID]),([Source]="On Cloud"&&[Status]=1)||([Source]="On Premise"&&[Status]=1)))both = COUNTROWS(SUMMARIZE(FILTER('Table',[count]=2),[EmpID]))
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Try this
=calculate(distinctcount(data[EmpID]),Data[Source]="On-Premise"||Data[Source]="On-Clound")
Hope this helps.
Thank you, but I would like to check through both On-Premise and On-Cloud Source via Status Column.
how can i do it 😥
Hi,
I do not understand what you mean by "via Status Column"? Please clarify.
For example, EmpID AGA28 On-Cloud Status equals 0(No) and On-Premise equals 1(Yes)
And I want to count employees who have both On-Premise and On-Cloud Source via Status Column.
Hi,
I assume you want to count Emp ID where Source is On Cloud and On premise and each has a value of 1. Am i correct? If yes, then share the link from where i can download your PBI file.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |