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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
surtex
Contributor III
Contributor III

Data by current month in a pie chart

Hey Qlik Member,

i would like to show the values with the following restrictions:

Budget Year = 2022

Month = current Month

Budgettype = A,I,K,R,M

I have a expression that works, but I always have to enter the current month manually :

=Sum({<Budget_Year = {'Plan 2022'}, MonthNbr = {'8'}, Budgettype = {R,M}>} Year_Value_1)

What is the reason for the following expression that its doesn't work???

=Sum({<Budget_Year = {'Plan 2022'}, Month = {'Month(today())'}, Budgettype = {R,M}>} Year_Value_1)

 

Anybody have an idea???

Thank you.

 

Regards

Josh

 

Labels (5)
1 Solution

Accepted Solutions
justISO
Specialist
Specialist

Hi, try this:

Sum({<Budget_Year = {'Plan 2022'}, MonthNbr = {$(#= num(Month(today())) )}, Budgettype = {R,M}>} Year_Value_1)

View solution in original post

2 Replies
justISO
Specialist
Specialist

Hi, try this:

Sum({<Budget_Year = {'Plan 2022'}, MonthNbr = {$(#= num(Month(today())) )}, Budgettype = {R,M}>} Year_Value_1)

sidhiq91
Specialist II
Specialist II

@surtex  Please use the below expression in your Set Analysis:

Sum({<Budget_Year = {'Plan 2022'}, Month = {"$(=Num(Month(Today())))"}, Budgettype = {R,M}>} Year_Value_1)

This should resolve your issue.