Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Brownie
Contributor III
Contributor III

Calculate Number of Sales before the Discount Value

I wanted to ask the expression used to calculate the number of sales that occurred before and after discount on a certain product. Also, how do i convert my discount value into percentage?Capture.PNG 

Labels (4)
1 Reply
Mark_Little
Luminary
Luminary

HI @Brownie 

 

For prior to discount i would be looking to do something in script to flag where the discount happened, then use that in the analysis, but hard to suggest more as i am not sure how you a grouping the data for the discount.

As for the discount as percentage, edit the table and find the column in question set number formatting to number and then format to the percentage.

mark6505_0-1666074364141.png

 

If it is a dimension then i would do it in script with the NUM() function