Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Add rows based on condition

Hi everyone, I am looking for a solution to add new rows to my dataset. For each Month of each value of [Country Name], I need to ensure that there is a row where [Business] = "Mining". If it does ...
  • v-juanli-msft's avatar
    6 years ago

    Hi Anonymous 

    In Edit queries, i create a date table as below

    enter dates in box "startdate" and "enddate", then "Invoke", we can get a new table, renamed it as "date",

    Then in your table, if you only have three columns, group data as below,

    Then add a custom column and expand

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.