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
Measure is:
COUNT() = COUNTX(FILTER(Table 1, Table 1[PM/CM] = "Corrective"
&& Table 1[Month Number(Failed Date)] <> BLANK()
&& Table 1[Month Name(Failed Date)] =MAX('Table 2[Month Name])), Table 1[PM/CM])
‘Table 1’ filtered by asset no:
It has dec, Jan and June entries for this asset
It also has this column Table1[PM/CM]
Table 2 looks like this and has nov-jul entries
Now cumulative count has to be calculated Nov to Jul
So for Jan count should be 3 and march also 3.
Can anyone help!
Solved! Go to Solution.
@WTAS80486 make sure you have the proper dimensions between the different facts and don't created a relationship between the facts themselves.
And create these measures:
COUNT(failures_month) V2 =
COUNTROWS(
FILTER(
Workorder_with_assetdowntime_MTBF,
Workorder_with_assetdowntime_MTBF[PM/CM] = "Corrective"
&& Workorder_with_assetdowntime_MTBF[Month Number(Failed Date)] <> BLANK()
)
)
COUNT(failures_month) V2 Cummulative =
VAR _max_date = max('Date'[Date])
VAR _max_peossible_date = MAX(Workorder_with_assetdowntime_MTBF[Failed Date New])
RETURN
CALCULATE(
[COUNT(failures_month) V2],
'Date'[Date] <= _max_date && 'Date'[Date] <= _max_peossible_date
)
Change this part:
@WTAS80486 make sure you have the proper dimensions between the different facts and don't created a relationship between the facts themselves.
And create these measures:
COUNT(failures_month) V2 =
COUNTROWS(
FILTER(
Workorder_with_assetdowntime_MTBF,
Workorder_with_assetdowntime_MTBF[PM/CM] = "Corrective"
&& Workorder_with_assetdowntime_MTBF[Month Number(Failed Date)] <> BLANK()
)
)
COUNT(failures_month) V2 Cummulative =
VAR _max_date = max('Date'[Date])
VAR _max_peossible_date = MAX(Workorder_with_assetdowntime_MTBF[Failed Date New])
RETURN
CALCULATE(
[COUNT(failures_month) V2],
'Date'[Date] <= _max_date && 'Date'[Date] <= _max_peossible_date
)
This measure:
Date(failed) from workorder_with_asset downtime table
Change this part:
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 | |
17 | |
16 | |
7 | |
5 |
User | Count |
---|---|
29 | |
28 | |
20 | |
13 | |
11 |