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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
charliep938
Frequent Visitor

Calculated Counts with particular dataset (DAX HELP)

Hi Everyone,

 

I hope someone can help me out with this.

charliep938_0-1695822751407.png

I have the above dataset.

This represents 1 property within a database. All of these rows relate to the same property and are linked in a couple of ways.

Firstly it's linked on the PartitionKey in some cases, whereas other times it will be linked on RowKey.

 

Is it possible to write a DAX expression that is a COUNT. So the result of this expression would be 1. But it needs to check IF the partitionKeys and the address is the same count as 1 OR IF the RowKeys match count towards it as 1. But it always needs to equal 1 for each of the properties in our dataset. To make things harder, sometimes we only have the bottom 2 row structure for 1 property.

 

I hope this makes sense, seems rather tricky.

 

Many thanks in advance!

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.