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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
marge_po
New Member

DAX formula

Hello everyone,

I have a table like this, how can I write the DAX to get total downtime_percent by branch

The formula is: (100 - downtime_percent)/ number of ID

 

Thx.

marge_po_0-1668066739979.png

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @marge_po 

>>write the DAX to get total downtime_percent by branch

create the measure,

 

TotalByBranch = CALCULATE(SUM('Table'[downtime_percent]),FILTER(ALL('Table'),'Table'[branch]=MIN('Table'[branch])))

 

vxiaotang_0-1668679276492.png

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @marge_po 

>>write the DAX to get total downtime_percent by branch

create the measure,

 

TotalByBranch = CALCULATE(SUM('Table'[downtime_percent]),FILTER(ALL('Table'),'Table'[branch]=MIN('Table'[branch])))

 

vxiaotang_0-1668679276492.png

 

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@marge_po , If case you need a measure

 

Averagex(Table, 100 - [downtime_percent])

 

Plot in visual with branch.

 

If this does not help. As already asked by @menglaro78 .
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
menglaro78
Microsoft Employee
Microsoft Employee

Hi,
it's not clear what you want to get, can you give examples with result numbers?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.