我的DAX查询有问题,希望您能帮助我:)
我想创建一个计入用户Story(在表中标识为迭代路径)已经存在的Sprint数量的度量方法.但是,如果用户情景在任何Sprint中都已关闭(标识为State),我希望度量返回0.
Title | Iteration Path | State |
---|---|---|
Subscription order intake | Sprint 10 | Active |
Subscription order intake | Sprint 10 | Closed |
Subscription order intake | Sprint 10 | New |
Source of truth views for list prices and cost prices | Sprint 09 | New |
Source of truth views for list prices and cost prices | Sprint 10 | Active |
Source of truth views for list prices and cost prices | Sprint 10 | New |
Source of truth views for list prices and cost prices | Sprint 11 | Active |
Source of truth views for list prices and cost prices | Sprint 12 | Active |
Source of truth views for list prices and cost prices | Sprint 12 | Closed |
Sales order views | Sprint 06 | Active |
Sales order views | Sprint 08 | Active |
Sales order views | Sprint 09 | Active |
Sales order views | Sprint 10 | Active |
Sales order views | Sprint 11 | Active |
Sales order views | Sprint 11 | Closed |
Quotes with longer than 6 months delivery time. | Sprint 06 | New |
Project economy - Data model | Sprint 06 | Active |
PrimeServ assist - Data model | Sprint 06 | Active |
PrimeServ assist - Data model | Sprint 08 | Active |
PrimeServ assist - Data model | Sprint 09 | Active |
Prepare Work shop and kick-off | Sprint 09 | New |
Prepare Work shop and kick-off | Sprint 10 | Active |
Prepare Work shop and kick-off | Sprint 10 | New |
Prepare Work shop and kick-off | Sprint 11 | Active |
Prepare Work shop and kick-off | Sprint 12 | Active |
仅作为示例,"订阅订单接收"、"价目表价格和成本价格的真实来源视图"和"销售订单视图"的返回值将为0.但是,"交付时间超过6个月的报价"的返回值将为1,而"PrimeServ辅助数据模型"的返回值将为3.这将产生类似下表的结果:
Title | Measure output |
---|---|
Subscription order intake | 0 |
Source of truth views for list prices and cost prices | 0 |
Sales order views | 0 |
Quotes with longer than 6 months delivery time. | 1 |
Project economy - Data model | 1 |
PrimeServ assist - Data model | 3 |
Prepare Work shop and kick-off | 4 |
我希望我的解释是正确的,提前谢谢!