Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get the fail by week and fail by month? URGENT HELP please


Hi,

I need to show the % of Fail by Week and % of Fail by Month. Can anyone help me please. As if we see the Member 'FR'. The 'FR' has % of Fail as 4.17% . so, my user is asking the same information if we take the dimension as Week.

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

I am confused now....

You have two different date formats and you have used only one format to convert the date in cross table !!

Use below and try to get your output.

If still not make it, let me know...

     Date(Alt(Date#(Date,'DD-MMM-YY'),

     Date#(Date,'DD/MM/YYYY'))) as Date,

View solution in original post

15 Replies
Not applicable
Author

please see attached.

EDIT: I tried using the below

Dimension: =IF(FiscalWeekSerial>=$(curFiscalWeekSeq)-4,FiscalWeek)

Expression :

=Count({<[Overall Result]={'Fail'}>} DISTINCT ID)/(Count({<[Overall Result]={'Pass'}>} Distinct (ID))+

Count({<[Add Overall Resilt]={'Pass'}>} Distinct (ID))+

Count({<[Overall Result]={'Fail'}>} Distinct (ID])))

but it is not showing correct values.

yduval75
Partner - Creator III
Partner - Creator III

Here the qvw

MK_QSL
MVP
MVP

Please check your data...

If you create a Straight Table with

Overall Result as Dimension

and

Count(Distinct ID) as Expression...

you will get result like

Fail  5

Pass 52

Pass 2

Why two Pass?

Looks like there are one extra space for pass against below two ID

F00565 and S02146

PrashantSangle

Hi,

Try this

=Count({<[Overall Result]={'Fail'}>} DISTINCT ID)/(Count({<[Overall Result]={'Pass'}>} Distinct ID)+

Count({<[Add Overall Resilt]={'Pass'}>} Distinct ID)+

Count({<[Overall Result]={'Fail'}>} Distinct ID))

Or

You can eliminate [Add Overall Resilt] field because you can get total ID by

Count({<[Overall Result]={'Pass'}>} Distinct ID) and

Count({<[Overall Result]={'Fail'}>} Distinct ID) expression

so you can

try this also,

=Count({<[Overall Result]={'Fail'}>} DISTINCT ID)/(Count({<[Overall Result]={'Pass'}>} Distinct ID)+

Count({<[Overall Result]={'Fail'}>} Distinct ID))

Regards,

PS

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Thanks. when I am clicking individual Member it is showing different data under Week

suppose if I click on FR the % of fail in Data table is showing as 4.17% whereas the % of Fail with dimension Week is showing as under 6th week as 14.29% . Is that correct ?

Not applicable
Author

Yes you are right. I created extra pass because of duplicate ID for different Dates.

MK_QSL
MVP
MVP

Sorry But can you explain in details what you want ?

Not applicable
Author

Thanks. I have a table with

Dimension: Member

Number Review

=(Count({<[Overall Result]={'Pass'}>} Distinct (ID))+

Count({<[Add Overall Resilt]={'Pass'}>} Distinct (ID))+

Count({<[Overall Result]={'Fail'}>} Distinct (ID])))


Number Fail =Count({<[Overall Result]={'Fail'}>} DISTINCT ID)

% of Fail= Number Fail/Number Review

Now my requirement is I need to show the % of Fail by Week and % of Fail by Month

I,e instead of dimension= Member I need Dimension= Week in one chart and Dimension=Month in another chart?

Not applicable
Author

Can you please tell me is that correct?