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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mfrye
New Member

Power BI Table with filtered columns?

I need to create a table view with columns that are something like filters of the data in date ranges.  I have all of my data in rows with dates and values but cannot figure out how to create the calculated columns or measures to reproduce the below table.

 

mfrye_0-1644425506459.png

My data is currently laid out with the values on the left (revenue, COGS, etc.) as columns in the table like the below but need to flip and calculate:

mfrye_1-1644425645537.png

(excuse the percentages, these are translated to $)

 

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @mfrye ,

 

Just put the date field in rows of matrix and revenue in values like the following.Select the aggregation method via the drop-down menu.

vchenwuzmsft_2-1644833436207.png

 

Result:

vchenwuzmsft_1-1644833297984.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

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

 

lbendlin
Super User
Super User

A couple of comments

 

- you can use "Show on rows" for values in a matrix

- you can consider using Calculation Groups to streamline the measures

- you cannot have empty rows in a visual unless you employ severe trickery 

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. 

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.