Forum Discussion

jvillela's avatar
jvillela
Regular Visitor
5 years ago

Help with column calculation

Dear, good afternoon. I have a table with a lot of data, including those in this image: https://ibb.co/ctsqQhL The "date to fix" column is fixed and the columns to the right of it are calculated based on that fixed date. What I need is for the user who sees the report (which I already have done) to choose a date to "insert" it into the "date to fix" column and make me the respective calculations of the columns on the right. Do you understand? I thought I could do it with parameters, but it doesn't detect the values to create the desired date. From now on thank you very much and greetings from Chile.

4 Replies

  • jvillela ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
    Can you share sample data and sample output in table format?
    Appreciate your Kudos.

  • v-xicai's avatar
    v-xicai
    Community Support

    Hi jvillela ,

     

    You may create a column like DAX below, assuming the <Date1> is referred to the Date value you will set for per user.

     

    date to fix =SWITCH( [User Name], "User1", <Date1>, "User2", <Date2>, "User3", <Date3>,,,)

     

    If I misunderstood it, could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

     

    Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.

     

    Best Regards,

    Amy 

     

    Community Support Team _ Amy

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.