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
mruhullah
Helper II
Helper II

running total - Continious

Need help. I am trying to get running total for current quarter, previous quarter and previous year. My data may not have continuous daily numbers for all quarters. Some day might be missing. Below is the query which I am using. But I am getting a huge down due to non-availability of certain day in raw data. Is there any way I can get the continuous graph?

PYP&STotal=

VAR myvalue = [DayOfPQ]

var Quarter = [PQ_Name]

Prod = IF(VALUES(Revenue_Table[DayofQtr])<>[DayOfPQ],BLANK(), CALCULATE([P&SRev_PQ],FILTER(ALLSELECTED(Revenue_Table),Revenue_Table[DayofQtr]<=myvalue && Revenue_Table[Fiscal Quarter]=Quarter && Revenue_Table[Reportring_Group]="Services" )))

Ser = IF(VALUES(Revenue_Table[DayofQtr])<>[DayOfpQ],BLANK(), CALCULATE([P&SRev_PQ],FILTER(ALLSELECTED(Revenue_Table),Revenue_Table[DayofQtr]<=myvalue && Revenue_Table[Fiscal Quarter]=Quarter && Revenue_Table[Reportring_Group]="Product" )))

Return 

Prod+ser

Below is the graph which I am getting as I don’t have any entry for day 10 of previous year.

 

continious graph.jpg

1 ACCEPTED SOLUTION

Figured out the solution.

 

Used date table and make 1 to Many relation. took date from date table insted of master table 🙂

 

 

View solution in original post

6 REPLIES 6
v-danhe-msft
Employee
Employee

Hi @mruhullah,

Could you have tried to switch the 'Type' in X-Axis to 'Continous'?

1.PNG

If it still not work, could you please offer your sample data to have a test if possible?

 

Regards,

Daniel He

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

@v-danhe-msft 

 

Can anyone help on this??

Figured out the solution.

 

Used date table and make 1 to Many relation. took date from date table insted of master table 🙂

 

 

mruhullah
Helper II
Helper II

continious graph.jpg

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.