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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
amar2arul
Frequent Visitor

Needed Help!!! - DAX

 I am trying to replicate the DAX syntax in Power BI . the formulae written in Spot fire is 

 

SUM(A/B)/Uniquecount( If ( ColName='XYZ',ColB)),0)

 

Where A  - is a direct column in table

 

and B is  -   IF( ColName='XYZ', COUNT(1) over ( col1, col2,col3))

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @amar2arul,

 

I am not able to understand above query used in Spot fire. Please post some dummy data to show us what original dataset is and what your desired output is. Besides, please illustrate the calculation rule to help us better understand your requirement.

 

Regards,

Yuliana Gu

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

Hi,

 

Sure..

 

Spotfire formula is :  

 

result = SN(  SUM ( Column X  /  Column Y ) /  uniquecount( IF( Column Z=  "Sample Text" ,  Column A ) ) , 0) 

 

*** Where Coluym Y =    IF (  column B= "Sample Text". Count(1) OVER  (Column C, Column D, Column E ) )

 

 

So i need the Result value formulae in Power BI

Hi @amar2arul,

 

Sorry, I'm not familiar with Spotfire formula. What I want to know is original data, and based on this data, what do you want to achieve? Please illustrate with sample data.

How to Get Your Question Answered Quickly

 

Regards,

Yuliana Gu

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.