Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to user enter a date for separate columns in base a specific date: before, month, future

Hi,  I have a report that contain some colums, we need separate the column Monto Pend in 3 columns:

Amount before: amount a specific date: example 23/04/2020
Amount Month: Amount between 24/04/2020 and 30/04/2020 and,
Pend. Futuro: Amount after 01/05/2020
At the moment I have create 3 calculate column and in each column (before,month,futuro) I enter the date for separete teh columns.

 

How to make this report dynamics?, how to made that the user select the specfic date and the report show the 3 columns with separate information?.

Regards

Robert

Sample the report

  • Hi Anonymous ,

     

    Check this file as an example: Download PBIX 

     

    I hope it helps.

     

    If you consider it as a solution, please mark as a solution and kudos.

    Ricardo

  • Hi Anonymous ,

    I have tested the pbix file that camargos88 did. It should work. If it works for you, please accept the helpful answer as a solution. If you still have questions, please share the expected results. Then we will understand clearly.😉

5 Replies

  • camargos88's avatar
    camargos88
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous ,

     

    The date is dynamic, but the invertal is fixed ? 

     

    Date 1 (Before) <= 2020/01/01

    Date 2 (Between) between Before + 1 day and Before + 7 days

    Date 3 (Future) =  >= Before + 7 days  

     

    If yes, you can create 3 measures instead of calculated columns. If you need help with that, just give us some data example here.

     

    Ricardo

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks Ricardo by your answer, i was thinking create Measure, but How make that the user enter the date for separated 3 columns (before, month (before date  until  last day of the monthn) future, nex month; example: 15/04/2020.

      Thanks by your help Ricardo.

      Data Sample

      Code ClientInvoiceDate InvoiceAmount
      119/23/2019 0:008910
      1211/20/2019 0:007128
      134/15/2020 0:002871
      145/26/2020 0:0013678.16
      152/15/2017 0:00-1.9
      162/15/2017 0:00-525
      275/27/2019 0:00-1206.9
      284/16/2020 0:00-224.1
      295/1/2020 0:001071.4
      2105/8/2020 0:00806.3
      2115/18/2020 0:001342
      2125/29/2020 0:002684
      2138/19/2014 0:00-1.95
      3143/27/2020 0:0016632
      3154/11/2020 0:0022400
      3165/1/2020 0:0055440
      3175/2/2020 0:0056000
      3185/11/2020 0:0056000
      3191/14/2020 0:00-15
      4204/12/2020 0:007683.97
      4214/13/2020 0:00-1593.36
      4224/14/2020 0:004850.7
      4234/17/2020 0:0045142.21
      4244/17/2020 0:003440.75
      4254/18/2020 0:0054753.19
      4264/19/2020 0:009401.93
      4274/20/2020 0:0082971.9
      4284/21/2020 0:00-1126.17
      4294/26/2020 0:0011.84
      4304/28/2020 0:004030.56
      4315/5/2020 0:00158.4
      4325/5/2020 0:001546
      4335/5/2020 0:009252.28
      4345/8/2020 0:006212.08
      4355/10/2020 0:0013943.39
      5363/12/2020 0:00-3533.53
      5373/16/2020 0:00781.7
      5383/17/2020 0:004070.39
      5393/17/2020 0:00-1130.82
      5403/18/2020 0:00-2533.9
      5413/20/2020 0:0090171.42
      5423/21/2020 0:00112326.98
      5433/25/2020 0:00-769.92
      5443/27/2020 0:002954.85
      5453/27/2020 0:0033429.51
      5463/27/2020 0:00493.61
      5473/28/2020 0:0010692.06
      5483/30/2020 0:0016.04
      5493/30/2020 0:00311.7
      5503/31/2020 0:005216.5
      5513/31/2020 0:0046945.86
      5524/3/2020 0:0012234.82
      5534/4/2020 0:0015173.14
      5544/7/2020 0:00-1005.14
      5554/7/2020 0:0068942.46
      5564/7/2020 0:00164.54
      5574/8/2020 0:00-1745.8
      5584/10/2020 0:009337.78
      5594/12/2020 0:002588.26
      5604/14/2020 0:003941.09
      5614/14/2020 0:0040498.88
      5624/17/2020 0:003440.75
      5634/18/2020 0:001329.17
      5644/18/2020 0:0040490.79
      5654/20/2020 0:0013043.65
      5664/20/2020 0:00104538.49
      5674/21/2020 0:00-1076.44
      5684/26/2020 0:005.92
      5694/28/2020 0:009590.94
      5705/5/2020 0:003175.5
      5715/5/2020 0:001236.8
      5725/5/2020 0:0027922.36
      5735/8/2020 0:009025.72
      5745/10/2020 0:003555.63
      5755/12/2020 0:004564.9
      5765/12/2020 0:0025639.16
      5775/17/2020 0:002782
      5785/18/2020 0:005166.9
      5795/18/2020 0:0097053.84
      5805/18/2020 0:006496.2
      5815/19/2020 0:004330.8
      5825/19/2020 0:0054438.42
      5835/23/2020 0:004837.5
      5845/29/2020 0:00158.4

       

       

       

       

       

      • camargos88's avatar
        camargos88
        Icon for Community Champion rankCommunity Champion

        Hi Anonymous ,

         

        Check this file as an example: Download PBIX 

         

        I hope it helps.

         

        If you consider it as a solution, please mark as a solution and kudos.

        Ricardo