Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
dharsanj
Helper II
Helper II

Analyze in Excel returns BLANK'd measure when cumulating weekly totals, but not otherwise

Hi there,

 

I have a weird situation - maybe it's a DAX issue that is not supported in the Analyze in Excel mode. I have a report published on the service, where I am populating two tables:

Table 1 shows the weekly revenue by GEO (Attachment #1). Table 2 shows the cumulative revenue for the Quarter (Attachment #2). When I pull the same data using Analyze in Excel, the weekly revenue by Geo populates data (Attachment #3), but the Cumulative Revenue by Geo shows blanks (Attachment #4). 

 

There are 3 specific measures that drive the visual. Table 1 shows Measure 1 in the value field. Table 2 shows Measure 2 in the value field. The definitions of them are given below. I would greatly appreciate advise on why the Cumulative Revenue by Week is not showing up in the Excel pivot table, but does show up in the published PBI file. 

Thanks!

-------------------------------------------------------------------------------------------------------------

MEASURE 1: Weekly Revenue

A.com/Perpetual (Weekly) =
CALCULATE (

    SUM ( HanaTbl[ACTUAL_REVENUE_USD] ),

    HanaTbl[REVENUE_TYPE_DESC] = "Product",

    HanaTbl[REVENUE_MIX_DESC] = "Shrinkwrap",

    HanaTbl[SELLINCH_TEXT] = "Direct-B2C-Phone/Oth"

        || HanaTbl[SELLINCH_TEXT] = "Direct-B2C-Web",

    HanaTbl[PROFIT_CENTER_TRIMMED] <> 1749

)

 

MEASURE 2: Cumulative Revenue

A.com/Perpetual (cumulative) =
CALCULATE (

    [Cuml Revenue by Day],

    HanaTbl[REVENUE_TYPE_DESC] = "Product",

    HanaTbl[REVENUE_MIX_DESC] = "Shrinkwrap",

    HanaTbl[SELLINCH_TEXT] = "Direct-B2C-Phone/Oth"

        || HanaTbl[SELLINCH_TEXT] = "Direct-B2C-Web",

    HanaTbl[PROFIT_CENTER_TRIMMED] <> 1749,

)

 

MEASURE 3: Cumulative Revenue by Day (which is used in Measure 2 above)

Cuml Revenue by Day =
VAR FiscalQtr =

    SELECTEDVALUE ( DimFiscalQtr[FISCAL_YR_AND_QTR_DESC] )

VAR DayNum =

    SELECTEDVALUE ( HanaTbl[CALENDAR_DATE] )

VAR WkNum =

    SELECTEDVALUE ( HanaTbl[Wk Num Adj] )

RETURN

    IF (

        NOT ( ISBLANK ( DayNum ) ),

        CALCULATE (

            SUM ( HanaTbl[ACTUAL_REVENUE_USD] ),

            CALCULATETABLE (

                HanaTbl,

                HanaTbl[Wk Num Adj] <= WkNum,

                HanaTbl[CALENDAR_DATE] <= DayNum,

                HanaTbl[FISCAL_YR_AND_QTR_DESC] = FiscalQtr

            )

        ),

        CALCULATE (

            SUM ( HanaTbl[ACTUAL_REVENUE_USD] ),

            CALCULATETABLE (

                HanaTbl,

                HanaTbl[Wk Num Adj] <= WkNum,

                HanaTbl[FISCAL_YR_AND_QTR_DESC] = FiscalQtr

            )

        )

    )

 

 

Weekly Revenue from PBI ServiceWeekly Revenue from PBI ServiceCumulative Revenue from PBI ServiceCumulative Revenue from PBI ServiceWeekly revenue from "Analyze in Excel" PBI downloadWeekly revenue from "Analyze in Excel" PBI downloadCumulative Revenue from "Analyze in Excel" from PBI downloadCumulative Revenue from "Analyze in Excel" from PBI download

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @dharsanj ,

 

I haven't heard of any limitations on the dax function for Analyze in Excel. It's weird that you have one visual that worked but one didn't. You may take a look at the document about Troubleshooting Analyze in Excel.

https://docs.microsoft.com/en-us/power-bi/collaborate-share/desktop-troubleshooting-analyze-in-excel 

Or you could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.