Forum Discussion
Self-populating table
Hi masons21
If all tables have a date stamp you can just use it as a group by in your visual and create a measure that does cont rows on each table.
COUNTROWS( table )
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
- masons217 years agoFrequent Visitor
Thanks for your suggestion Mariusz
That's not exactly what I need to do - I can use the COUNTROWS function but I need the total number of rows in the database each month, regardless of when the rows were generated. So the dates associated with them are meaningless for this purpose as there may be carry-over each month. I need a new row to be generated in a new table each month that populates with the total number of rows in the database at that time.
- Mariusz7 years agoCommunity Champion
Hi masons21
You can not insert rows in query editor ( to my knowledge ), if you are working with direct query ( sql I'm guessing ) you might as well do it there.
If no one is removing records from your tables ( should not happen anyway ), you could create a measure with running total like below.Measure = COUNTROWS( FILTER( ALL( 'Table' ), 'Table'[createdDate] <= MAX('Table'[createdDate] ) ) )This would return
Based on datasetBest Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.