This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 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 |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |