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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Calculating the Mode Average, Low Mode Average and High Mode Average?

Afternoon, 

 

Wondering if anyone has come accross this before. 

I have a data set which is a list of figures across mutiple dates and I need to calculate the Low Mode Average, Mode Average and High Mode Average of the prices listed on a specific date. 

 

I have the calculation for the mode average which is just the standard process; 

Mode Avg Price 1408 = 
    CALCULATE(
        MINX (
            TOPN (
                1,
                ADDCOLUMNS (
                    VALUES ( All_data[prices] ),
                    "Frequency", CALCULATE ( COUNT ( All_data[prices]) )
                ),
                [Frequency],
                0
            ),
            All_data[prices]
        ),
        DATESBETWEEN(All_data[recorded_date].[Date], DATE(2019,08,14), DATE(2019,08,14))
    )

Which as intended, returns the mode average price overall, on the 14th August. 

 

How would you then return the mode average for the lowest and highest prices. 

 

My logic is anything above [Mode Avg Price 1408] is a High Price and anything below is a Low Price. 

How though in the mode calculation, for the low and high, would you add that filter that the All_data[prices] to be included has to be smaller than or greated than the [Mode Avg Price 1408] figure? 

 

Thanks

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Do you solve the problem? If yes, please mark the helpful answer as a solution. You could share your own solution to us. More people will find the answer quickly and benefit from here. If not, you could share a dummy file or some screenshots to make us understand clearly.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I'm not sure I got you. You want compare the values and [Mode Avg Price 1408]. If the values is bigger, it will show High Mode Average. Otherwise, it will show Low Mode Average. Do I understand correctly? If so, you could try to create a formula with the function of IF to implement it. 

Measure = IF(SUM('Table'[Profit])>=[AVERAGE],"High","Low")

Currently, it is unavailable to compare a measure in the filter pane. It is only supported to input specific numbers. So if we want to do it, we need to create formulas to implement.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Apologies for the delay in responding, had an issue receiving the email notifications. 

 

Kind of but for the collection of "high" or "low" prices, I need to calculate the mode of those figures. 

 

So as an example like the below; 

data  
66Low Mode
6
9
25
32
35
3535True Mode
3580High Mode
60
80
80
94
97

 

Numbers are obviously fabricated but hopefully puts across what I mean as an illustration. 

 

any help would be greatly appreciated, the immediate need to calculate has passed but I would like to know for the future so I have it resolved when required again. 

 

Kind Regards

Anonymous
Not applicable

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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