Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

How to pull the data for specific Column?

Excel file 

 

I want to pull the data for the two measures. For the first measure, I want to pull the data for the past month from the 0th Column.  I created first measure1. And for the second measure, I want to pull from columns 1 to 12. For example, for the second measure, if I want to see the data for July month (199 in this case), it must show in the second column and respectively until December.  I unpivoted columns from 0 to 12. What DAX code do I need to use it here? So that I able to satisfy requirement

 
 
Measure1 =

CALCULATE(
SUM('Projektprognos (2)'[Value]),
FILTER('Projektprognos (2)', ([Attribute]<1)
)

)

v-yanjiang-msft 

 

11 Replies

  • First step is to unpivot your data to bring it into usable format.

     

    Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.

    Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

    https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello I unpivoted data in Power Bi still I am strugging for pulling the data. 

      • lbendlin's avatar
        lbendlin
        Super User

        Please provide sanitized sample data that fully covers your issue.

        Please show the expected outcome based on the sample data you provided.

  • v-luwang-msft's avatar
    v-luwang-msft
    Community Support

    Hi Anonymous ,


    Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

    Best Regards
    Lucien