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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dotnetfan
Contributor III
Contributor III

How to use ColumnNo() in expression

I have one question about how to minus ColumnNo() in my following expression:

If(RowNo() = 3,
If(ColumnNo() < $(CurrentMonth),
Sum([BP.Value])
,Text(Above( Sum( [BP.Value] )) - Sum( [BP.Value]))&'/'&
Text(ONLY({<BestWorst.Month = {"$(=CurrentMonth * 2 - 1)"}, [BestWorst.Year] = {"$(=Best)"}>}BestWorst.Value))
&'/'&Text(ColumnNo())
),Sum([BP.Value]))

 

I have tried: {<BestWorst.Month = {"$(=CurrentMonth * 2 - 1 - ColumnNo())"} but it doesn't work...

Please help me, thanks!

Labels (2)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

ColumnNo() returns the index number of the dimension or expression in a pivot table.

https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/Inter...

Can you explain in more detail what you're trying to do? An example app would help.


talk is cheap, supply exceeds demand
BinayKumarSah
Contributor III
Contributor III