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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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