This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 36 | |
| 29 | |
| 22 | |
| 21 |