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
Anonymous
Not applicable

dax

hi
i have these formulas from excel.
i am trying to re do them for dax.
=Table1[[#Totals],[Request ID]]
=COUNTIF(Table1[Engineer Visits],"1")
=D21/D20*100

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

For the first two formulas, yon can try below codes to create measures.

 
Totals = CALCULATE(SUM(Table1[Request ID]),ALL(Table1))
 
Counts = CALCULATE(COUNT(Table1[Engineer Visits]),Table1[Engineer Visits]=1)
 
For the last one, it's difficult to write a general formula for it without knowing what table and data is like. In Power BI, we cannot refer to a specified cell in a formula like what we do in Excel with "D21", "D20" because there is not a fixed row or column index in Power BI. We need some conditions to filter a row to get the value in a specified column.
04903.jpg
Hope this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
 

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

For the first two formulas, yon can try below codes to create measures.

 
Totals = CALCULATE(SUM(Table1[Request ID]),ALL(Table1))
 
Counts = CALCULATE(COUNT(Table1[Engineer Visits]),Table1[Engineer Visits]=1)
 
For the last one, it's difficult to write a general formula for it without knowing what table and data is like. In Power BI, we cannot refer to a specified cell in a formula like what we do in Excel with "D21", "D20" because there is not a fixed row or column index in Power BI. We need some conditions to filter a row to get the value in a specified column.
04903.jpg
Hope this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
 
negi007
Community Champion
Community Champion

@Anonymous to help you on this, we would more details like what calculation you are trying to attempt  from these formulas and details about your data as well. Please share your data and calcualtion you wish to do. 

 

BAsed on limited deails you have provided you can create your dax like below in powerbi

 

=Table1[[#Totals],[Request ID]]
=calculate(sum(total))

 

=COUNTIF(Table1[Engineer Visits],"1")

=calculate(count(Table1[Engineer Visits],1)

 

=D21/D20*100

= divide(d21,d20)*100

 

we will revert once we get more clarity frm you




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

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.