Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I am very new to Power BI and I need your advice.
I have many calculated fields which need to combine and present in rows for example
Expected Output
Name Evaluation_Period KPI1
Mr A Q1 90
Mr A Q4 80
MR A Result Fail
MR B Q1 80
MR B Q4 85
MR B Result Pass
Currently I have prepared calculated field KPI1 like Pre_KPI1, Post_KPI1
I can display in table like
Name Pre_KPI1, Post_KPI1
I don't know how to make it to row.
Thank you very much
Solved! Go to Solution.
Hi,
According to your description, i create a sample to test:
Then try to create a new calculated table:
Table 2 = UNION(DISTINCT(SELECTCOLUMNS('Table',"New Evaluation_Period",'Table'[Evaluation_Period ])),DATATABLE("E",STRING,{{"Result"}}))
It shows:
Then try this measure:
New KPI1 = IF(SELECTEDVALUE('Table 2'[New Evaluation_Period]) = "Result",MAX('Table'[Result]),CALCULATE(SUM('Table'[ KPI1]),FILTER('Table','Table'[Evaluation_Period ] = SELECTEDVALUE('Table 2'[New Evaluation_Period]))))
The result shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
Hi,
According to your description, i create a sample to test:
Then try to create a new calculated table:
Table 2 = UNION(DISTINCT(SELECTCOLUMNS('Table',"New Evaluation_Period",'Table'[Evaluation_Period ])),DATATABLE("E",STRING,{{"Result"}}))
It shows:
Then try this measure:
New KPI1 = IF(SELECTEDVALUE('Table 2'[New Evaluation_Period]) = "Result",MAX('Table'[Result]),CALCULATE(SUM('Table'[ KPI1]),FILTER('Table','Table'[Evaluation_Period ] = SELECTEDVALUE('Table 2'[New Evaluation_Period]))))
The result shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
75 | |
54 | |
37 | |
31 |
User | Count |
---|---|
99 | |
56 | |
50 | |
42 | |
40 |