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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
supr4
Frequent Visitor

Help recreating excel sample formula in Power Bi

Hello,

As the tittle says, I'm having issues with the mentioned task.

FormulaFormulaApplied formula resultApplied formula result

 

 

 

 

 

 

The column 'Otros' and 'Total Gen' are the ones I can't replicate.

Any help would be amazing,
thanks beforehand for any answer.

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @supr4

 

Create calculated columns as:

 

f>12meses… = 
IF(
    'Table 1'[Rango]="f>12meses…",
    'Table 1'[Stocks/],
    BLANK()
)
d.6-9meses = 
IF(
    'Table 1'[Rango]="d.6-9meses",
    'Table 1'[Stocks/],
    BLANK()
)
Otros = 
'Table 1'[Stocks/]-'Table 1'[f>12meses…]-'Table 1'[d.6-9meses]
Total Gen = 
'Table 1'[f>12meses…]+'Table 1'[Otros]

 

Here is the output:

vxulinmstf_0-1630999017704.png

The demo is attached, please try it.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

View solution in original post

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @supr4

 

Create calculated columns as:

 

f>12meses… = 
IF(
    'Table 1'[Rango]="f>12meses…",
    'Table 1'[Stocks/],
    BLANK()
)
d.6-9meses = 
IF(
    'Table 1'[Rango]="d.6-9meses",
    'Table 1'[Stocks/],
    BLANK()
)
Otros = 
'Table 1'[Stocks/]-'Table 1'[f>12meses…]-'Table 1'[d.6-9meses]
Total Gen = 
'Table 1'[f>12meses…]+'Table 1'[Otros]

 

Here is the output:

vxulinmstf_0-1630999017704.png

The demo is attached, please try it.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

lbendlin
Super User
Super User

Please provide sample data in usable format (not as a picture - maybe insert into a table?) and show the expected outcome.  Trying to recreate Excel formulas does a disservice to the capabilities of Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.