Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data analysis mode; pivot by Posting_Date month, quarter, year does not work for data coming from Query object #223

Open
SilviuVirlan opened this issue Dec 17, 2023 · 2 comments

Comments

@SilviuVirlan
Copy link

I have a simple query:
query 50110 "Shipments By Custmer"
{
DataAccessIntent = ReadOnly;
QueryType = Normal;

elements
{
    dataitem(DataItemName; "Item Ledger Entry")
    {
        DataItemTableFilter = "Document Type" = filter(= 'Sales Shipment');
        column(Source_No; "Source No.") { }
        column(Item_No_; "Item No.") { }
        column(Posting_Date; "Posting Date") { }
        column(Qty; Quantity) { }
        column(Sales_Amount__Actual_; "Sales Amount (Actual)") { }
    }
}

}

I trigger the query from Items page.

pageextension 50110 MyExtension extends "Item List"
{
layout
{

}

actions
{
    addafter("Ledger E&ntries")
    {
        action("Trigger Query")
        {
            ApplicationArea = All;
            Caption = 'Analyze shipments';
            RunObject = query "Shipments By Custmer";
            Tooltip = 'Open the customer query in analysis mode.';
            Image = Item;
        }
    }
}

}
I cannot pivot by Posting Date columns (year, quarter or month).
Pivoting by Posting Date Year, Quarter or Month works when the underlying data is a page list.

@SilviuVirlan SilviuVirlan changed the title Data analysis mode; pivot by Psoting_Date month, year does not work for data coming from Query object Data analysis mode; pivot by Posting_Date month, quarter, year does not work for data coming from Query object Dec 17, 2023
@KennieNP
Copy link
Contributor

KennieNP commented Dec 18, 2023 via email

@SilviuVirlan
Copy link
Author

My environment shows version: US Business Central 23.1 (Platform 23.0.14532.0 + Application 23.1.13431.13546)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants