Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
14 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |