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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JJP1
New Member

Incorrect Measure Totals

Hello. 

 

I am seeking assistance with Power BI desktop. 

 

The issue I am having is that the incorrect totals are being pulled from the raw data source. See below. 

 

The '24' at the top of the list should be 25 and the '41' should be 42. When I review the raw data, I should be getting 190; however, Power BI only recognizes 188. I have a similar issue with another table where the grand total pulled from the raw data should be 218, but Power BI only recognizes 217. 

 

The tables are quite simple - they are tables totalling the # of projects after a fiscal year filter is applied. 

 

Any help would be greatly appreciated. 

 

1.JPG2.JPG

1 ACCEPTED SOLUTION

Hello @VijayP

 

I am unable to access the folder using my work laptop; however, using the following FY formula in my Dates Table, the issue appears to be resolved (so far):

 

FY =
var _year = if(month([date]) >=4 , year([date]),year([date])-1)
var _month = MONTH([Date])
return ("FY "&_year&"-"&(_year+1))
 
 
Thank you for all of your previous support!

View solution in original post

8 REPLIES 8
VijayP
Super User
Super User

@JJP1 I have created a model look at that  https://drive.google.com/file/d/1n5J3_-EQIP5b_t9PgvYmR1NA_862YxGS/view?usp=sharing




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello @VijayP

 

I am unable to access the folder using my work laptop; however, using the following FY formula in my Dates Table, the issue appears to be resolved (so far):

 

FY =
var _year = if(month([date]) >=4 , year([date]),year([date])-1)
var _month = MONTH([Date])
return ("FY "&_year&"-"&(_year+1))
 
 
Thank you for all of your previous support!
VijayP
Super User
Super User

@JJP1 

Fiscal year formula ( A part of your date table) 
if(monthnumber<4,monthnumber+9, monthnumber-3) it gives you the fiscal month

if(monthnumber<4,year-1,year+1 ) it gives you the right year as per fiscal calender

Rest I can help only when i can see the sample data




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello @VijayP

 

I have included sample data for two fiscal years 2022-2023 and 2023-2024. 

 

code  date

AS27-Oct-22
MS28-Oct-22
JC26-Oct-22
MS3-Nov-22
JC28-Oct-22
MA11-Nov-22
JC4-Nov-22
JC3-Nov-22
HL10-Nov-22
MS9-Nov-22
JC10-Nov-22
AS9-Dec-22
JC10-Nov-22
MS21-Nov-22
JC18-Nov-22
GS18-Nov-22
HL17-Nov-22
MS24-Nov-22
MS24-Nov-22
JC2-Dec-22
JC2-Dec-22
GS2-Dec-22
MS9-Dec-22
GS9-Dec-22
HL16-Dec-22
AS16-Dec-22
MS16-Dec-22
GS9-Dec-22
GS23-Dec-22
MS20-Dec-22
GS23-Dec-22
HL5-Jan-23
AS22-Dec-22
GS13-Jan-23
AS12-Jan-23
HL12-Jan-23
AS20-Jan-23
HL20-Jan-23
AS20-Jan-23
MS19-Jan-23
MS18-Jan-23
GS20-Jan-23
AS25-Jan-23
GS14-Feb-23
HL2-Feb-23
GS19-Jan-23
MS1-Feb-23
HL1-Feb-23
MS3-Feb-23
HL3-Feb-23
PA 31-Jan-23
PA 2-Feb-23
MS2-Feb-23
JC3-Feb-23
MS8-Feb-23
SR10-Feb-23
GS23-Feb-23
PA 15-Feb-23
JC15-Feb-23
JC17-Feb-23
PA 17-Feb-23
JC15-Feb-23
JC17-Feb-23
GS24-Feb-23
PA 22-Feb-23
GS24-Feb-23
JC22-Feb-23
PA 23-Feb-23
SR24-Feb-23
JC3-Mar-23
GS2-Mar-23
JC1-Mar-23
SR3-Mar-23
JC2-Mar-23
JC3-Mar-23
GS10-Mar-23
GS10-Mar-23
SR17-Mar-23
JC15-Mar-23
GS22-Mar-23
SR24-Mar-23
JC24-Mar-23
GS31-Mar-23
JC28-Mar-23
GS29-Mar-23
JC29-Mar-23
SR31-Mar-23
JC30-Mar-23
HL25-Apr-23
JC5-Apr-23
SR14-Apr-23
AU14-Apr-23
AS20-Apr-23
JC14-Apr-23
JC14-Apr-23
HL26-Apr-23
AS27-Apr-23
SR27-Apr-23
AS25-Apr-23
HL12-May-23
AS4-May-23
HL19-May-23
AS12-May-23
PA 5-May-23
JC11-May-23
MS12-May-23
HL2-Jun-23
AS19-May-23
SR11-May-23
JC17-May-23
AS19-May-23
MS19-May-23
SR24-May-23
MS2-Jun-23
JC26-May-23
JC26-May-23
VijayP
Super User
Super User

@JJP1 Without looking sample data it is difficult to assess the issue




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello @VijayP,

 

On further investigation, I discovered the issue is with my dates table.

 

Our fiscal year is April to Mar. The dates in January 2024 for some reason are not being accounted for when the 2023-2024 fiscal year filter is applied. For some reason they appear under the 2022-2023 fiscal year data.

 

This is the fiscal year formula I used in the dates table:

 

FY =
var _year = if(month([date]) >=4 , year([date]),year([date])-1)
var _month = MONTH([Date])
return
IF(
    _month=1,
    "FY "&(_year-1)&"-"&_year,
    "FY "&_year&"-"&(_year+1)
)
 

May you please help me identify the error? I am hoping to correct the formula in a way it will not require ongoing maintenance. 

 

Thanks!

VijayP
Super User
Super User

@JJP1 Check the rounding issues like  - 20.8 will be considered 21 when it is rounded 20.4 will be considered 20 when it is rounded.


the data provided is incomplete since I am not able see the raw data

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello @VijayP

 

There are no partial numbers in the data. The table counts the remaining number of dates in a column after a fiscal year filter is applied. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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