Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
11 | |
9 | |
9 |