- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calculate median
I have a table called Award-Deny Table as follows:
Days Worked Received Date Action Date
2
5
3
34
39
39
40
93
95
88
And I want to find Median of range of values 0-30 days, 31-60 days, 61-90 days, and 90+ days. I saw on-line where I might can use a comparison table with min and max values and use that in my measure. I am new to Power BI by the way.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @Anonymous
Welcome to the world of Power BI 🙂
are you trying to see how many times days worked happen by a bucket value? for example
0-30 days 3
31-60 days 4
61-90 days 1
91+ days 2
and have this data in a new table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just wanting to write a DAX statement with filters to find median of each of those buckets. I saw wher in one filter you can read the valuse in the members of the whole column and compare with min and max values. The table I defined to compare to: Range value Min Max
0-30 0 30
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sorry , I guess I hit transmit before I finished.
The compare table I created to use in the filter is named Group Ranges:
Range Value Min Max
0-30 0 30
31-60 31 60
61-90 61 90
90+ 91 99999
I know the 90+ doesn't seem right in Range Value but that's how the specs described it.
I'm just trying to calculate the Median of the values of Days Work field in the table in first post for all the ones in 0-30 range, 31-60 range and so on. I know I will have to use a filter to load values to compare to the Compare table and have the median for each range in a visual. Like I said I'm very new to Power BI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Yeah so you can do it.
You need to create a new column for each "Bucket" 0-30, 31-60 etc with the following DAX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-14-2024 06:30 AM | |||
08-19-2024 08:35 PM | |||
04-19-2024 05:55 AM | |||
Anonymous
| 01-29-2019 10:38 AM | ||
10-26-2023 02:24 PM |
User | Count |
---|---|
122 | |
104 | |
83 | |
52 | |
45 |