Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to create a measure/column that can filter if the following:
Solved! Go to Solution.
Hi @Anonymous ,
Based on the description, please try the following methods:
1.Create the sample table.
2.Create the new column to filter the order.
Filter Work Order =
IF(
TBL_WORK_ORDER[PRIMARY_TRADE] = 600 &&
TBL_WORK_ORDER[CRITICAL_STATUS_CODE] IN {"A", "B", "C", "D", "00", "01", "04"} &&
ISBLANK(RELATED('Table history'[COMPLETED_DATE])),
1,
0
)
3.Create the new measure to calculate the count.
Count not completed date =
CALCULATE(
COUNTROWS(TBL_WORK_ORDER), TBL_WORK_ORDER[Filter Work Order] = 1)
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on the description, please try the following methods:
1.Create the sample table.
2.Create the new column to filter the order.
Filter Work Order =
IF(
TBL_WORK_ORDER[PRIMARY_TRADE] = 600 &&
TBL_WORK_ORDER[CRITICAL_STATUS_CODE] IN {"A", "B", "C", "D", "00", "01", "04"} &&
ISBLANK(RELATED('Table history'[COMPLETED_DATE])),
1,
0
)
3.Create the new measure to calculate the count.
Count not completed date =
CALCULATE(
COUNTROWS(TBL_WORK_ORDER), TBL_WORK_ORDER[Filter Work Order] = 1)
4.The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
It will be really helpfull for community members to understand more about your requirement if you can share your table structure along with the modeling tab snap shot.
Sometimes a problem can be solved with simple approach if it is explained well.
please share some sample data and relationship details.
Thanks,
Try this one
Timeliness_600_Active =
CALCULATE(
COUNTROWS(TBL_WORK_ORDER),
TBL_WORK_ORDER[PRIMARY_TRADE] = "600",
TBL_WORK_ORDER[CRITICAL_STATUS_CODE] IN {"A", "B", "C", "D", "00", "01", "04"},
NOT(
TBL_WORK_ORDER[WORK_ORDER_NUMBERS]
IN
SELECTCOLUMNS(
FILTER(
TBL_HISTORY,
NOT(ISBLANK(TBL_HISTORY[COMPLETED_DATE]))
),
"WORK_ORDER_NUMBERS", TBL_HISTORY[WORK_ORDER_NUMBERS]
)
)
)
Please post some sample data and expected output.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |