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 in Power BI by kalyan
28 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 by Cherukuri
• 31,840 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
• 16,300 points
33 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,530 points
742 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 in Power BI by Cherukuri
• 31,840 points
51 views
0 votes
1 answer

count of string in pie chart

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

answered May 7 in Power BI by Cherukuri
• 31,840 points
39 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,060 points
104 views
0 votes
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,060 points
749 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
• 16,300 points
137 views
0 votes
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
• 42,330 points
136 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 in Power BI by Cherukuri
• 31,840 points
31 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 in Power BI by Cherukuri
• 31,840 points
35 views