Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
H_insight
Helper V
Helper V

Income Statement that shows Current Month and YTD columns

I am aiming to create the following table or matrix in Power BI and would greatly appreciate your assistance. Depending on the chosen Year and Month, I would like to show In Month / YTS & Full Year values. The column headers, need to show Revenue vs Expenses dynamically and display the corresponding values. Below is the required output layout.

 

Test 2.png

 

Attached sample model, where Scenario's means ( BU = Budget, AC = Actual, FC = Forcast).

Sample File 

Thank you.

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi, @H_insight 

Thanks for your sample pbix file first!

According to your description, you want to create a custom matrix in Power BI Desktop.

For this need , you need to create a dimension table like this:(the index column is used for sorting the Title column)

vyueyunzhmsft_0-1687829809696.png

And then you can put the fields on the visual and we can get this :

vyueyunzhmsft_1-1687829868541.png

For your needs, I don't know your specific calculation logic, you can use the MAX() function to get the column title, and then use the IF() or SWITCH() function to return the corresponding value according to different situations to achieve your needs.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

View solution in original post

2 REPLIES 2
H_insight
Helper V
Helper V

Thank you @v-yueyunzh-msft 👍

 

Out of interest, what about the values and variance? do I need a special Dax to achieve it?

v-yueyunzh-msft
Community Support
Community Support

Hi, @H_insight 

Thanks for your sample pbix file first!

According to your description, you want to create a custom matrix in Power BI Desktop.

For this need , you need to create a dimension table like this:(the index column is used for sorting the Title column)

vyueyunzhmsft_0-1687829809696.png

And then you can put the fields on the visual and we can get this :

vyueyunzhmsft_1-1687829868541.png

For your needs, I don't know your specific calculation logic, you can use the MAX() function to get the column title, and then use the IF() or SWITCH() function to return the corresponding value according to different situations to achieve your needs.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors