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
Anonymous
Not applicable

Grouping Year Data into whole numbers

Hi Experts

 

i want to group my DAX table in a similiar format to the table that is currently being produced in R. The table from R shows the values for whole years where my table shows values for each interval within the year (months). I do not need to show the time series as show in R happy to have the product name as per DAX Table.

R TABLE
Capture1.PNG

 

 

 

 

 

 

DAX TABLE


Capture2.PNG

 

 

 

 

linkhttps://www.dropbox.com/s/47fyhkj5euzw02q/Kaplan_Miers_v1.2.pbix?dl=0

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

You can try to add a calculate column with ROUNDDOWN function to convert your decimal values to whole number.

Rounddown =
ROUNDDOWN ( Table[Decimal], 0 )

rounddown-function-dax

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Anonymous ,

I'd like to suggest you add a calculated column round up your decimals values to whole number then use new column on matrix column fields.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi Xiaoxin

 

Any suggest on how to round the decimals values to whole numbers...

Hi @Anonymous ,

You can try to add a calculate column with ROUNDDOWN function to convert your decimal values to whole number.

Rounddown =
ROUNDDOWN ( Table[Decimal], 0 )

rounddown-function-dax

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.