Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Seniors,
1. I need to find the blank count between data, from launched date
2. find max blank count between data from launched date
Solved! Go to Solution.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create two measure to calculate the correct results.
Like this:
countblank =
COUNTBLANK ( Table1[number] )
max countblank =
VAR maxdate =
MAXX ( ALL ( Table1 ), [date] )
VAR tableindeax =
SUMMARIZE (
FILTER ( ALLSELECTED ( Table1 ), [number] <> BLANK () ),
Table1[date],
Table1[number]
)
VAR minxdate =
MINX ( ALLSELECTED ( Table1 ), [date] )
VAR minxdateindex =
MINX ( tableindeax, [date] )
VAR countfirst =
DATEDIFF ( minxdate, minxdateindex, DAY )
VAR tab =
ADDCOLUMNS (
tableindeax,
"New",
VAR next =
MINX ( FILTER ( tableindeax, [date] > EARLIER ( Table1[date] ) ), [date] )
RETURN
DATEDIFF ( [date], next, DAY ) - 1
)
RETURN
MAX ( MAXX ( tab, [New] ), countfirst )
Here is my sample .pbix file.Hope this helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create two measure to calculate the correct results.
Like this:
countblank =
COUNTBLANK ( Table1[number] )
max countblank =
VAR maxdate =
MAXX ( ALL ( Table1 ), [date] )
VAR tableindeax =
SUMMARIZE (
FILTER ( ALLSELECTED ( Table1 ), [number] <> BLANK () ),
Table1[date],
Table1[number]
)
VAR minxdate =
MINX ( ALLSELECTED ( Table1 ), [date] )
VAR minxdateindex =
MINX ( tableindeax, [date] )
VAR countfirst =
DATEDIFF ( minxdate, minxdateindex, DAY )
VAR tab =
ADDCOLUMNS (
tableindeax,
"New",
VAR next =
MINX ( FILTER ( tableindeax, [date] > EARLIER ( Table1[date] ) ), [date] )
RETURN
DATEDIFF ( [date], next, DAY ) - 1
)
RETURN
MAX ( MAXX ( tab, [New] ), countfirst )
Here is my sample .pbix file.Hope this helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Check if somthing like this can work
countrows(filter(table,isblank(table[column])))
HI,
im new
its in pivot table, explain clear little bit
thanks advance
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |