March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I want to perform the following division from columns in two separate tables:
Failure Ratio=
Solved! Go to Solution.
@Anonymous
Please try
Failure Ratio =
VAR CurrentYear =
SELECTEDVALUE ( 'All Devices By Region'[Install Year] )
RETURN
DIVIDE (
CALCULATE (
COUNTA ( 'Failure Table'[Distinct Install to First Failure] ),
YEAR ( 'Failure Table'[Install Day] ) = CurrentYear
),
COUNTA ( 'All Devices By Region'[Install Year] )
)
Hi @Anonymous
In which table are creating this column? What is the relationship between the two tables? Or are you trying to create a measure? If so how does your report look like?
Hi @tamerj1 ,
I am trying to create this as a measure in the 'Failure Table' table. The two tables are not linked. Currently I have a graph with value of Failure Ratio and axis of Year('Failure Table'[Install Day]). However, currently the data is showing the Count of Distinct Install to First Failure for a given year divided by the total number devices installed, not number of devices installed that year.
@Anonymous
Please try
Failure Ratio =
VAR CurrentYear =
SELECTEDVALUE ( 'All Devices By Region'[Install Year] )
RETURN
DIVIDE (
CALCULATE (
COUNTA ( 'Failure Table'[Distinct Install to First Failure] ),
YEAR ( 'Failure Table'[Install Day] ) = CurrentYear
),
COUNTA ( 'All Devices By Region'[Install Year] )
)
That worked, thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
24 | |
21 | |
20 | |
15 | |
10 |