Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 9 | |
| 5 | |
| 5 |