Read FAQ
NEW
Bitrix24 Support
Registration and Authentication
How to start
My Profile
Feed
Chats and Calls
Calendar
Bitrix24.Docs
Bitrix24.Drive
Bitrix24.Mail
Workgroups
Tasks and Projects
CRM
CoPilot - AI in Bitrix24
Contact Center
Sales Center
CRM Analytics (beta)
BI Builder
Sales Intelligence
Inventory Management
Marketing
Sites
Online Store (beta)
CRM + Online Store
CRM Store (beta)
Bitrix24.Sign
Company
Knowledge base (beta)
Automation
Workflows
Telephony
Market
Subscription
Settings
Enterprise
Mobile App
Desktop App
General questions
Bitrix24 On-Premise

Bitrix24Care

Filter report data by different dates in Microsoft Power BI

We've added the ability to filter dates by alternative columns to the BI-connector. In the advanced editor, you can select a date range for the report and add a filtering option: start date, modify date and end date.

In this way, the report will contain already filtered data and you won't have to configure additional sampling in Power BI.


How to filter data

For example, you have created a report on deals and want to see only closed deals for a certain period. To do this, go to Transform data section and open bx24_load_entity in the Advanced Editor.

Replace the code in the editor with a new one.

 Content = Json.FromValue([dateRange = [

                            startDate = #date(2022, 10, 23),
                            endDate = #date(2022, 10, 23)

                            //startDate = Date.AddYears(Date.From(DateTime.LocalNow()),-10),
                            //endDate = Date.From(DateTime.LocalNow())
                            
                            ],
                            key = #"Secret key",
                            configParams = [ timeFilterColumn = "DATE_CLOSED" ]
                            //DATE_CREATE (23.10.2022)
                            //DATE_MODIFY (23.10.2022)
                            //DATE_CLOSED (23.10.2022)
                        ]
                    )
                ]
            ),
            jd = Json.Document(response)

  • startDate and endDate – specify the time interval of the data.

  • configParams = [ timeFilterColumn = "*****" ] – enter the parameter by which the data will be filtered. You can specify the date of creation, modification or closing.

In our example, we have filtered the deals by the end date of 23.10.2022. This data can be used to build a report on closed deals.


Was this information helpful?
Integration specialist assistance
That's not what I'm looking for
Complicated and incomprehensible text
The information is outdated
It's too short. I need more information
I don't like the way this tool works
Go to Bitrix24
Don't have an account? Create for free