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
Anonymous
Not applicable

help on chart web traffic

hi all,

I have a website and it running on a campaign for 1 month..

Is there a way to show during this month, what time is the highest traffic?
Attached is the sample file, is there a better way to show it?

Any advice is greatful. Thank in advance.

2 ACCEPTED SOLUTIONS

Hi @Anonymous ,

Try the following measure:

highest traffic =
CALCULATE (
    MAX ( Sheet1[Hour] ),
    TOPN (
        1,
        ALLSELECTED ( Sheet1[Hour] ),
        CALCULATE ( SUM ( Sheet1[View] ) ), DESC
    )
)

11.PNG

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

View solution in original post

Hi @Anonymous ,

Here are two ways to see if it meets your requirements:
1. Create the following new table and apply for Multi-row card:

Table = TOPN (
        3,
        ALLSELECTED ( Sheet1[Hour] ),
        CALCULATE ( SUM ( Sheet1[View] ) ), DESC
    )

21.PNG
2. Create the following measures and apply for Multi-row card after filtering:

Rank = RANKX(ALL(Sheet1[Hour]),CALCULATE(SUM(Sheet1[View])),,,Dense)

22.PNG

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

View solution in original post

7 REPLIES 7
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

You can try the following method:
1. Create the following measure Rank:

Rank = RANKX(ALL(Sheet1[Hour]),CALCULATE(SUM(Sheet1[View])),,,Dense)

2. Apply Rank to the filter and set the value of Rank equal to 1:

1.PNG

Here is a demo, please try it:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EWQduaFvIhZBi7XG_mRR6skBe289p2kQ12t85e6pv-c-Fw?e=WckJRm

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

Anonymous
Not applicable

hihi...is there a way to show as a card visual or chart instead of table?

I tried but doesnt seem working.

Thanks so much

parry2k
Super User
Super User

@Anonymous try this measure

 

Max Hour = 
CALCULATE ( 
    MAX ( Sheet1[Hour] ),
    TOPN ( 1, ALLSELECTED ( Sheet1[Hour], Sheet1[Date] ), CALCULATE ( SUM ( Sheet1[View] ) ), DESC ) 
) 


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

i tried this method, but not enough memory for my data...any other ways?

Hi @Anonymous ,

Try the following measure:

highest traffic =
CALCULATE (
    MAX ( Sheet1[Hour] ),
    TOPN (
        1,
        ALLSELECTED ( Sheet1[Hour] ),
        CALCULATE ( SUM ( Sheet1[View] ) ), DESC
    )
)

11.PNG

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

Anonymous
Not applicable

It work perfectly.

by the way, For the topN, if i wanted the top 3, possible?

I tried changing the number but it doesn't work.

Thank you

Hi @Anonymous ,

Here are two ways to see if it meets your requirements:
1. Create the following new table and apply for Multi-row card:

Table = TOPN (
        3,
        ALLSELECTED ( Sheet1[Hour] ),
        CALCULATE ( SUM ( Sheet1[View] ) ), DESC
    )

21.PNG
2. Create the following measures and apply for Multi-row card after filtering:

Rank = RANKX(ALL(Sheet1[Hour]),CALCULATE(SUM(Sheet1[View])),,,Dense)

22.PNG

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

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.