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
Amardeep100115
Post Prodigy
Post Prodigy

90 days Utilization

Hi,

 

 

Please find the attached sheet as sample data, please help me with same results in BI Please

 

Sample Data 

AB
14 REPLIES 14
Amardeep100115
Post Prodigy
Post Prodigy

I have shared sample data which i am refering in my report, Please help me have same result

wish to be have weekly average cust# count, Monthly average Cust# count and its 90days pecentile (90 days) like you created but it should be measure if possible

Thanks in advance 

 

like i have in excel 

Sample Data 

Please

AB
Amardeep100115
Post Prodigy
Post Prodigy

I have shared sample data which i am refering in my report, Please help me have same result

wish to be have weekly average cust# count, Monthly average Cust# count and its 90days pecentile (90 days) like you created but it should be measure if possible

Thanks in advance 

 

like i have in excel 

Sample Data 

Please

AB

hi @Amardeep100115 

the sample data is so big and it is raw data, could you please share a simple pbix file and your expected output.

 

 

Regards,

Lin

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

Hi @v-lili6-msft 

 

Thanks you so much for your greate help 
Please have a look attached data in which iave give Pine Code, Date, Cust #.
wish to be have weekly average cust# count, Monthly average Cust# count and its 90days pecentile (90 days) like you created but it should be measure if possible

Thanks in advance 

Revised Sample Data 

 

AB

hi  @Amardeep100115 

If you want a meausre, adjust the formula as below:

Measure 2 =
VAR _90date =
    MINX (
        TOPN (
            91,
            FILTER ( ALL ( Table1 ), Table1[Actual Date] < MAX ( Table1[Actual Date] ) ),
            Table1[Actual Date], DESC
        ),
        Table1[Actual Date]
    )
RETURN
    AVERAGEX (
        FILTER (
            ALL ( Table1 ),
            Table1[Actual Date] < MAX ( Table1[Actual Date] )
                && Table1[Actual Date] >= _90date
        ),
        [Avg Weekly]
    ) * 0.9

 

and this will lead a measure total problem for only month row context, so add a new measure as below:

Measure 3 = SUMX(VALUES(Table1[Actual Date]),[Measure 2])

See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

Regards,

Lin

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

Hi @v-lili6-msft
Any scope of help on this
AB

Hi @v-lili6-msft
Please
help on this
AB
Amardeep100115
Post Prodigy
Post Prodigy

Hi


please have a look attached file i have entered my data in Sheet1 table.

i have a measure Avg Wkly and Daily occu

Could you please help me with same results in Table one ? with Avg Weekly column and 90% persentile (90 Days) as well)

AB

hi  @Amardeep100115 

Do you mean Avg Weekly is a measure? I couldn't see Daily occu column too.

From the excel file, you must have a column to create a measure,

it is better you could share your sample pbix file for us have a test. that will be a great help.

 

5.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lili6-msft
Community Support
Community Support

hi @Amardeep100115 

I don't see any expected output in this excel file:

2.JPG

 

Please share your expected output in excel, that way, we will give you further help in power bi.

Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

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

Hi @v-lili6-msft 

Sorry wrong fike posted

 

Updated smaple Data 

 

Also see the results below and there are graphs in file, i wish to be have same graph as well 

 

Please help

 

dasdaw.jpg

 

 

AB

hi @Amardeep100115 

First, there is a mistake in your excel file.

=IF([@Day] = "Mon", [@WeekOf], IF([@Day] = "Tue", [@WeekOf]+1, IF([@Day] = "Wed", [@WeekOf]+2, IF([@Day] = "Thur", [@WeekOf]+3, [@WeekOf]+4))))

In your Day column, it is Thu not Thur.

please adjust it and refresh the excel file.

 

Second, then create a 90% Percentile (90 Days) column by this formula:

90% Percentile = var _90date=MINX(TOPN(91,FILTER(Table1,Table1[Actual Date]<EARLIER(Table1[Actual Date])),Table1[Actual Date],DESC),Table1[Actual Date]) return
CALCULATE(AVERAGE(Table1[Avg Weekly]),FILTER(Table1,Table1[Actual Date]<EARLIER(Table1[Actual Date])&&Table1[Actual Date]>=_90date))*0.9

Result:

1.JPG

 

and here is sample pbix file, please try it.

 

Regards,

Lin

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

Is it possible to help me with BI file ?

Please

AB
Greg_Deckler
Super User
Super User

@Amardeep100115 - Perhaps this will help: https://community.powerbi.com/t5/Community-Blog/Excel-to-DAX-Translation/ba-p/1060991

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.