The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
How to get zero for blank values as am getting for first row but not for 4th.
Dax:
Res/Res1 =
SUMX(
Summarize('TS','TS'[Priority],'TS'[AS]),
CALCULATE (
COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),
FILTER (
VALUES('TS'), 'TS'[Parent]=Blank() && 'TS'[In Task2] =1 &&
'TS' [Response/Restore]<>Blank() ),
'TS'[Priority]=earlier('TS'[Priority]),
'TS'[Actual stage]=EARLIER('TS'[AS]
)))+0
Solved! Go to Solution.
This is because you are using a one-table model. Such models are inherently incorrect and should never be used unless you want to have issues you will never be able to explain (due to, for instance, the auto-exists feature).
Please use a correct model that's a star-schema and your worries will be gone. You definitely should read this article before you even start thinking about data modeling in PBI: Understand star schema and the importance for Power BI … (bing.com)
Hi @Chandrashekar,
You may try to make some change to your formula.
Res/Res1 =
var count_=SUMX(
Summarize('TS','TS'[Priority],'TS'[AS]),
CALCULATE (
COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),
FILTER (
VALUES('TS'), 'TS'[Parent]=Blank() && 'TS'[In Task2] =1 &&
'TS' [Response/Restore]<>Blank() ),
'TS'[Priority]=earlier('TS'[Priority]),
'TS'[Actual stage]=EARLIER('TS'[AS]
)))+0
return if(isblank(count_),0,count_)
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hello,
I tried this solution(with your formula) but still am getting zero. is there any other way to fix it.
Regards,
Chandrashekar B
Hello,
Any help to get zero for blank values?
Regards,
Chandrashekar B
Hello,
May I know for why zero getting 1-Critical but not getting for 4-low.
How to get zero for blank values as am getting for first row but not for 4th.
Dax:
Res/Res1 =
SUMX(
Summarize('TS','TS'[Priority],'TS'[AS]),
CALCULATE (
COUNTROWS('TS'),USERELATIONSHIP('TS'[Date_Closed_SLA],'Calendar'[Date]),
FILTER (
VALUES('TS'), 'TS'[Parent]=Blank() && 'TS'[In Task2] =1 &&
'TS' [Response/Restore]<>Blank() ),
'TS'[Priority]=earlier('TS'[Priority]),
'TS'[Actual stage]=EARLIER('TS'[AS]
)))+0
Regards,
Chandrashekar B
This is because you are using a one-table model. Such models are inherently incorrect and should never be used unless you want to have issues you will never be able to explain (due to, for instance, the auto-exists feature).
Please use a correct model that's a star-schema and your worries will be gone. You definitely should read this article before you even start thinking about data modeling in PBI: Understand star schema and the importance for Power BI … (bing.com)
Hello,
Thank for the instructions. I will check on it.
Regards,
Chandrashekar B
@Chandrashekar , is Priority coming from a separate dimension table joine diwth main fact. If not try that out
Hello Amit,
Can you please show how to do it as am bit new to this.
Regards,
Chandrashekar B
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |