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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mitapate
Frequent Visitor

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

 

mitapate_0-1693565805303.png

-- 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 3
Greg_Deckler
Super User
Super User

@mitapate 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-Hiera...

 

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.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi, 

Following is the data that I have : 

mitapate_0-1693893752954.png

 

 

This is how I want the output to be in Power BI: 

mitapate_1-1693893781108.png

 

Hi @mitapate ,

You can create a matrix visual with the below Fields setttings:

vyiruanmsft_0-1694429676269.png

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

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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