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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerBI_newB23
Frequent Visitor

Multiple Rows in Matrix with Calculated Measure Problem

Help please

 

I have a Matrix visual with two row fields. The calculated measure below only works when I have one field and not two. Please assist

 

CALCULATE(DISTINCTCOUNT(Data_Load[Account_Number]), DATESMTD(Data_Load[Account_Open_Date]),Data_Load[Account_Open_Date])

 

Product_Code_DescSub_Product_DescSales MTD
Prod_1sub_prod_1586
Prod_1sub_prod_21
Prod_1sub_prod_344
Prod_1sub_prod_440
Prod_1sub_prod_55
Prod_1sub_prod_61
Prod_1sub_prod_71
Prod_1sub_prod_825
Prod_1sub_prod_92
Prod_1sub_prod_102
Prod_1sub_prod_113
Prod_1sub_prod_121
Prod_1sub_prod_1310
Prod_1sub_prod_14361
Total 697
Prod_2sub_prod_151
Prod_2sub_prod_1613
Prod_2sub_prod_17559
Prod_2sub_prod_1818
Prod_2sub_prod_19653
Prod_2sub_prod_203
Prod_2sub_prod_2134
Prod_2sub_prod_2235
Prod_2sub_prod_238869
  1268
   

 

@dax @NewB 

1 ACCEPTED SOLUTION

Seems like there is some missing information here. Like a date table, some relationships to the date table, etc.

 

Is that source data you present and what is the measure name for the formula you provided?

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
PowerBI_newB23
Frequent Visitor

any idea @Greg_Deckler please

Seems like there is some missing information here. Like a date table, some relationships to the date table, etc.

 

Is that source data you present and what is the measure name for the formula you provided?

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.