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 two tables, one with orders, and one with the items on the order. They are linked by a separate key:
In the example I have:
I am looking for a measure that will give me that last output. i.e. a distinct count of the order, where the distinct count of the item = 1
I tried below but it is gving me a zero output
CALCULATE( DISTINCTCOUNTNOBLANK(Table1[Order]) ,
FILTER( RELATEDTABLE(Table2), DISTINCTCOUNTNOBLANK(Table2[Item])=1) )
Solved! Go to Solution.
@dapperscavenger , Assume two table are related with each other, try a measure like
CALCULATE( Countx(filter(Summarize( Table2, Table1[Order] , "_1" , DISTINCTCOUNTNOBLANK(Table2[Item])),[_1] =1 ),[Order]))
or
CALCULATE( Countx(filter(Summarize( Table1, Table1[Order] , "_1" , DISTINCTCOUNTNOBLANK(Table2[Item])),[_1] =1 ),[Order]))
@dapperscavenger , Assume two table are related with each other, try a measure like
CALCULATE( Countx(filter(Summarize( Table2, Table1[Order] , "_1" , DISTINCTCOUNTNOBLANK(Table2[Item])),[_1] =1 ),[Order]))
or
CALCULATE( Countx(filter(Summarize( Table1, Table1[Order] , "_1" , DISTINCTCOUNTNOBLANK(Table2[Item])),[_1] =1 ),[Order]))
Worked great! Thank you!
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 |
---|---|
143 | |
84 | |
64 | |
52 | |
49 |
User | Count |
---|---|
211 | |
87 | |
80 | |
69 | |
60 |