March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have simple data model as below
I need to show No of Transactions fro each Tehsil. Tehsils with no transactions should show 0 entry. I created following two versions of measure:
No. of Transactions 2 =
var r = COUNTROWS(Transactions)
return if (r = BLANK(), 0, r)
No. of Transactions =
var r = CALCULATE( COUNTROWS(Transactions), REMOVEFILTERS(District[District Name]))
return if (r = BLANK(), 0, r)
when I use this measure with only Tehsil, both give correct answer
but when i add District column, it repeat rows:
Please help to solve issue.
Thanks @DallasBaba for replying.
I changed cross filter direction of relationship between District & Tehsil tables to "Both" but it did not work.
Hi @nasirskardu
The district is filtering on Tehsil.
You need set the cross-filter cardinality to both directions so the Tehsil can filter on the district.
Please let me know if this work.
Thanks
Babatunde Dallas
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
16 | |
15 | |
7 | |
7 |
User | Count |
---|---|
37 | |
31 | |
16 | |
16 | |
12 |