Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
The source data is like below.
Date | Value |
Mar 2023 | 1 |
Apr 2023 | 1 |
May 2023 | 2 |
Jun 2023 | 2 |
Jul 2023 | 2 |
Using the data, I want to define a measure that shows the value of the first month, whether the values are shown by months, by quarter, or by year.
For example, in case of shown by quarter, it would look like below. Q1 is empty because there is no data for Jan. Q2 is 1 which is from Apr. Q3 is 3 which is from Jul.
Q1 | Q2 | Q3 |
1 | 2 |
LIkewise, when shown by year, it would look like below because the value for Jan is null (not exist).
2023 |
I was able to show Q2 and Q3 values correctly by using FIRSTNONBLANKVALUE() like below. (pleae ignore why I use MINX. it is for other reasons)
FIRSTNONBLANKVALUE = FIRSTNONBLANKVALUE(Dates[Date], MINX('Fact', 'Fact'[Value]))
Solved! Go to Solution.
I was able to figure it out. Shareing the result hopeng it could help somebody else in future
I was able to figure it out. Shareing the result hopeng it could help somebody else in future
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |