Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Matt_Bee_23
Regular Visitor

Total number of unique / individual entries?

Hi. Hopefully this is a simple enough request for you guys. I've got a bunch of raw data that I'm trying to work out for a project at work. In the table below is an example piece of the data I'm working with,it's a lot bigger than this. The info I am wanting to get if it's possible, can I filter or create a graph showing the following:

  • How many times each material number appears on the report.
  • How many times each material number appears on the report & by site
  • The first and last date a material appears on the report

There are a lot of other sites on the report, can it be possible to show the number of times a site appears on the report? Example, Birmingham in the below is on there 23 times and is showing 3 individual materials & 4 individual batches, can the report tell me how many times Birmingham appears, as well as showing the material each time? Hopefully nothing too complex to get, I'm a Power BI newbie. Thanks.

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @Matt_Bee_23 

Do you want to achieve the following output

vxinruzhumsft_0-1688094261248.png

 

If the output is your requirement, you can refer to the following two measures.

Count_plants = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Plant]))

Count_material_byplants = CALCULATE(COUNTA('Table'[Material]),ALLEXCEPT('Table','Table'[Plant],'Table'[Material]))

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @Matt_Bee_23 

Do you want to achieve the following output

vxinruzhumsft_0-1688094261248.png

 

If the output is your requirement, you can refer to the following two measures.

Count_plants = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Plant]))

Count_material_byplants = CALCULATE(COUNTA('Table'[Material]),ALLEXCEPT('Table','Table'[Plant],'Table'[Material]))

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Matt_Bee_23
Regular Visitor

PlantMaterialBatchYearMonth
Yorkshire12233383AAACCC20231
Yorkshire12233383AAACCC20222
Yorkshire12233383AAADDD20232
Yorkshire15566993DDDFFF20233
Birmingham40092721EEEVVV20224
Birmingham15566993FFFCCC20235
London15566993CCCCCC20226
Birmingham40092721FFFGGG20226
Birmingham40092721ZXXCCV20237

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.