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.
Hello,
There is a DAX query which i am unable to resolve.
Background of the screenshot: In the above screenshot we have date for conferences that happens almost every year.
Conf Code - Conference Code assigned to a conference for a particular year and changes slightly every year
Accu Code - It is unique to every Conference and remains same.
Conf Year - Year in which conference has happened.
# Individuals Retained - it represents the no. of attendees got retained.
# Individuals Retained PY - it represents the no. of attendees got retained from past year.
Suppose a new conference "CET22A" happens this year i.e. "2022" but the "# Individuals Retained" measure is blank then "# Individuals Retained PY" measure should show the last non blank value of "# Individuals Retained" measure which is 24 in above case and repeat it until "# Individuals Retained" has a value as in the screenshot for this particular conference only.
Current Measure in use:
Solved! Go to Solution.
@Amaze23 , Try a measure like
calculate(lastnonblankvalue(Table[Year],[# Individuals Retained]), filter(all(Table), [Accu Code] = max([Accu Code] ) && [Year] <= Max(Table[Year])))
@Amaze23 , Try a measure like
calculate(lastnonblankvalue(Table[Year],[# Individuals Retained]), filter(all(Table), [Accu Code] = max([Accu Code] ) && [Year] <= Max(Table[Year])))
@amitchandak : Thanks, it worked great! you used lastnonblankvalue & tweaked use of conf year as Conf year <= Max (conf year), can you put light on this ?
Actually it looks simple but i am not able to get it.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
119 | |
83 | |
47 | |
42 | |
33 |
User | Count |
---|---|
190 | |
78 | |
72 | |
54 | |
45 |