Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I have a list of transactions, each with a dollar amount. I'm interested in creating several metrics about various ranges of the dollar amounts for the transaction (such as 0-30 or 150-300).
I managaed to make BI measures that counted the number of rows with transaction amounts in a given range fairly easily with something like:
Range_3k = COUNTAX(FILTER(Gift, AND(Gift[amount]>=3000, Gift[amount]<6000)), Gift[amount])
where "Gift" is the gift table containing all gifts, gift[amount] is the transaction dollar amount, and the ranges are literal integers. The problem with this is that for any metric (count, sum, average, etc), I then have to create a measure for each range, so not the most efficient way when you have 16 ranges.
My idea was to create a new table with the ranges and their metrics. So in this case, I have the columns (range name, minimum amount, maximum amount, count, sum).
I'm getting stuck with how to count or sum the gifts for a given range though. I've tried creating a new column and using DAX expressions and using Power Query, but somehow I feel like I'm going about this the wrong way.
How would other people here go about making an untold number of metrics for a given range of data within a table? I can't imagine manually making 50+ measures is the only way to do this.
Solved! Go to Solution.
Hello - here is a resource that goes into detail and provides example scenarios and sample scripts. You will need to use the dynamic segmentation DAX pattern. This will allow you to avoid creating separate measures for each bin.
Hello - here is a resource that goes into detail and provides example scenarios and sample scripts. You will need to use the dynamic segmentation DAX pattern. This will allow you to avoid creating separate measures for each bin.
Thanks for the link @jennratten! I haven't quite gotten it working yet (this is more of side project I'm doing), but this definitely feels like the right way forward.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |