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.
Hi,
I'm cretaing a conditional measure that count events from two diffrent columns that are related by a key .
the date slicer is coming from a relationship table .
I want to count them 1 when both date together exist in the time range from the date slicer .
if only one leg exist then count them as 0 .events are related .
how do you create such measure including userelationship() to the date table
Thank you
Solved! Go to Solution.
@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I may use an independent date table and check both are in range.
Even if one joined I can force between on another date
//Date 1 joined with and active , pushing filter to date 2
new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = mainx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date2] >=_min && 'Table'[Date2] <=_max))
Thank you ! The only diffrence I used CountAX instead of SUM()
@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I may use an independent date table and check both are in range.
Even if one joined I can force between on another date
//Date 1 joined with and active , pushing filter to date 2
new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = mainx(allselected(Date),Date[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date2] >=_min && 'Table'[Date2] <=_max))
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 |
---|---|
145 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
67 | |
60 |