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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
HalfFox
New Member

Convert from Tableau into DAX

Hi,

 

So, I really need to convert those 2 formulas from tableau into DAX:

{ FIXED [Nfe] : COUNTD ([Codigo Sap])
and

SUM([Sell Out])/COUNTD ([Nfe])

I tried a couple of different formulas but the results are not even close to what I was looking for

The closest I got was using:

SKU NFE = CALCULATE(DISTINCTCOUNT(SELL_OUT_COMPLETO[CODIGO_SAP]),ALLEXCEPT(SELL_OUT_COMPLETO,SELL_OUT_COMPLETO[NFE]))
 
And got "97" as result, but the result I was looking for is "4". No idea how to solve this.
1 REPLY 1
Anonymous
Not applicable

Hi @HalfFox ,

I'm not very familiar with tableau 's formula. Could you give a sample about the formula calculating. For example: 

Column=SUM('Table'[value])

The column uses to sum the [value] column .

What about the following?

{ FIXED [Nfe] : COUNTD ([Codigo Sap])
and

SUM([Sell Out])/COUNTD ([Nfe])

 

What the result of the calculation looks like?

 

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors