Forum Discussion
Filtering
- 8 years ago
Hi JAVED,
You can create calculated columns below:
0-50 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)<=50,Table1[Price],BLANK())
50-150 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)<=150 && DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)>50,Table1[Price],BLANK())
>150 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)>150,Table1[Price],BLANK())
Best Regards,
Qiuyun Yu
| Part No. | Part Name | Price | Date |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | November 07, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | November 07, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | October 17, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | October 15, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | October 14, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | October 12, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | October 06, 2017 |
| ISO-PRIMER-PR | 1K ISOLATING PR GREY | 316.68 | September 19, 2017 |
Dis is sample data,here i have 10 years of data but i need to display only 6 months data. i need to create 3 columns one should display only 1 to 50 days price of part name 2nd column as 50 to 150 days price of partname remaining as one column.Here i gave ranks to date but i am not able to divide the column in to 3 as desired
Hi JAVED,
You can create calculated columns below:
0-50 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)<=50,Table1[Price],BLANK())
50-150 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)<=150 && DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)>50,Table1[Price],BLANK())
>150 = IF(DATEDIFF('Table1'[Date],MAX('Table1'[Date]),DAY)>150,Table1[Price],BLANK())
Best Regards,
Qiuyun Yu
- JAVED8 years ago
Helper I
Thanks for your help that works
- JAVED8 years ago
Helper I
I took it as a pie chart like 0-50,50-100,100-150 and i took the table with product name ,product code , price when i click on 0-50 in pie chart the table is not filtering it shows all values i want to see only 0-50 values.