Forum Discussion
Get a desired table result in Power BI
Hi,
We're working for one of the client's data where we have the following columns :
Year
Fiscal period
Week
Forecast value
Actual Sales Value
-- Following is the table that we have been able to create.
Further, we want that for the remaining forecast value which is blank, it should show Actual sales value respectively.
For e.g.
For Fiscal period = 2 and Week =2 , Forecast is 6307,717.47 and Actual Sales = 6017162.28
while for Fiscal period = 2 and Week =3 , Forecast should show as 6017162.28
How can this be achieved for the whole table?
3 Replies
- Greg_Deckler
Community Champion
Anonymous Hard to be specific without sample data, etc. This custom matrix hierarchy might be the answer but difficult to tell. https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428
Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.- AnonymousNot applicable
Hi,
Following is the data that I have :
This is how I want the output to be in Power BI:
- AnonymousNot applicable
Hi Anonymous ,
You can create a matrix visual with the below Fields setttings:
If the above ones can't help you figure out, please provide some source data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards