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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Seantoh
Frequent Visitor

How to solve to problem? Count

       

Hi all,

 

May i know,

* what should i do if i want to know how many in total for "Number 1", "Number 2" until "Number 9999" ?

  can i do it in query editor before apply?

* what should i do if i want to know how many "Number 1" appeared in Jan, Feb, Mar, until Dec?

  can i do it in query editor before apply?

Screenshot_1.jpg

Appreciate for help!

Thanks

 

Regards

sean

 

3 REPLIES 3
v-jiascu-msft
Employee
Employee

@Seantoh,

 

Hi Sean,

 

Did you fail to do it with DAX? These two question is simple to handle with DAX. How much memory do you have?

Q1. Drag the column "Num" to the fields of a table visual twice. Set the first one to "Don't summarize" and set the second to "Sum".

 

How to solve to problem Count1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Q2.

1) Create an independent date table.

DateTable =
CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) )

2) Establish relationship between DateTable[Date] and YourTable[Date].

3) Drag the DateTable[Date] and YourTable[Num] to the fields of a table visual. 

4) Set date to hierarchy of Year-Month and set [num] to count.

5) Filter out "Number 1".

 

How to solve to problem Count2.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vvelarde
Community Champion
Community Champion

@Seantoh

 

Hi, you can do it with Group By (Transform Menu)

 

Regards

 

Victor

Lima - Peru




Lima - Peru

hi victor,

 

i tried. evaluate out of memory. sad.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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