Count of Id within another Id

0 votes
Hi, i need help getting count of Id within another Id field.Order ID has cashier id in it. Can in find the count of those orders for each cashier?
Apr 10, 2019 in Power BI by kalyan
124 views

1 answer to this question.

0 votes
Hi Kalyan,

Follow below steps:

1. Create a slicer to select each cashier one at a time.

2. Create a measure to find the order id that contains cashier_id in it by using below code.

contains = IF(CONTAINS(Orders,Orders[Order Id],Orders[Cashier Id]),"Contain","Not Contain")

3. The above code would return contain or not contain for each order when you would select a cashier id.

4. Now put the contains measure in filter ans show only values for "Contain"

Hope this helps you.
answered Apr 17, 2019 by Cherukuri
• 32,910 points

Related Questions In Power BI

0 votes
1 answer

Max count of workspaces per one PRO user

Right now, it is 250, will be ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 18,550 points
114 views
0 votes
1 answer

DAX : Occurrences of "count"

Try this for creating a calculated column ...READ MORE

answered Nov 21, 2018 in Power BI by Upasana
• 8,620 points
2,663 views
0 votes
1 answer

count of orders on n hour basis - Power BI

Hi Nithin, You can create a measure to ...READ MORE

answered Apr 10, 2019 in Power BI by Cherukuri
• 32,910 points
174 views
0 votes
1 answer

count of string in pie chart

Hi Prakash, Select the measure and measure that ...READ MORE

answered May 7, 2019 in Power BI by Cherukuri
• 32,910 points
468 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,150 points
305 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 21, 2018 in Power BI by nirvana
• 3,150 points
1,386 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,550 points
398 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,290 points
434 views
0 votes
1 answer

Count - using If within period of dates.

Hi Sindhu, Use below DAX code to create ...READ MORE

answered May 8, 2019 in Power BI by Cherukuri
• 32,910 points
80 views
0 votes
1 answer

Add Column Count_of_people across two tables to get the count of people from a city.

Hi Anitha, 1. Merge both tables, using City ...READ MORE

answered Mar 22, 2019 in Power BI by Cherukuri
• 32,910 points
132 views