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
IPGeorgiev
Helper III
Helper III

Advanced Data columns in a table

Hi all,

 

I am quite new to Power BI and I have one report which I would like to automate if possible.

 

This is a table which in terms of rows is easy to configure, however in terms of rows its a bit hard.

 

In the raw data we have - Day, Month, Week, Year as separate columuns so that we we want to achieve is a table which looks like this:

image.png

 

It like if we are able to have columuns with a week value which can be expanded to daily value.


Hope I managed to explain what we need.

 

Many thanks in advance!

 

BEst regards,

Ivan 

1 ACCEPTED SOLUTION

@IPGeorgiev ,

 

You can use the WEEKNUM() function:

WEEKNUM(<date>, <return_type>)  

https://docs.microsoft.com/en-us/dax/weeknum-function-dax

 

Community Support Team _ Jimmy Tao

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

 

View solution in original post

3 REPLIES 3
IPGeorgiev
Helper III
Helper III

I have some progress..

 

I found this feature "

Drill down on column headers"

 

The issue now is that I cant get the Weeks in the Data Hierarchy.


Thats what I have displayed in the fields section:

 

image.png

 

And heres what I have in the raw data:

 

 

image.png

 

Now if I use Month, Week, Date it gets confused and shows the months as follows - December, February, January

 

If I get the time hierarchy I dont have the weeks. 

 

Any advices?

 

many thanks!

 

@IPGeorgiev ,

 

You can use the WEEKNUM() function:

WEEKNUM(<date>, <return_type>)  

https://docs.microsoft.com/en-us/dax/weeknum-function-dax

 

Community Support Team _ Jimmy Tao

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

 

Hi, thanks for the reply! This works and adds the week, however still doesnt manage to get a good visual in Power Bi Matrix

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.