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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
joshua1990
Post Prodigy
Post Prodigy

Calculated table with count

Hi experts!

I would like to create a calculated table with dax that shows me some dimensional data including the number of weeks where a specific goal has been reached.

The data model has a

  • simple calendar table (Date, Week,Month)
  • team table (County, Team, Product)
  • and a sales table (Product, SalesVolume, SalesRevenue, Date)

Those tables are linked by Date and Product.

Now I would like to create a table that shows for each country and team those kind of goals:

  • Sales 
    • Good: > 100
    • Neutral > 50
    • Bad < 50
  • Revenue
    • Good > 500
    • Neutral > 250
    • bad >250

I would like to see the number of weeks where this kind of goal has been reached.

The tables should look like this:

CountryTeamKPIGoalFrequence
FranceASalesGood10
FranceASalesBad5
FranceASalesNeutral3
FranceBRevenueGood12
FranceBRevenueBad6

 

 

How would you do that with DAX?

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @joshua1990 

Thanks for reaching out to us.

Could you please provide some sample data of table sales according to the expected outcome you provide? Thanks.

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.