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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Kornholio1313
Frequent Visitor

Create two different fields from single table with one date

Hello all!

 

I need to use one table, with one Created Date and output two different fields from that. Basically, a user can choose one date timeframe and the output would be called "Branded". Then the user can choose another, different timeframe, from the same table and the output is called "UnBranded".

 

Should look like this

 

Kornholio1313_0-1695689879110.png

 

Where "Branded" is based off of one date selected and "UnBranded" is based off a different date selected. Both are using the same Created Date Field.

 

5 REPLIES 5
amitchandak
Super User
Super User

@Kornholio1313 , For this the slicer needs to be on independent date table

 

//Date1 is independent Date table
Branded  =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

 

//Date1 is independent Date table
Not Branded  =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Table', 'Table'[Date] < _min && 'Table'[Date] > _max))

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

HI @amitchandak ! I did create those fields, but how do i create the BRANDED and UNBRANDED to show on the same table chart, one for each line? Like this???

Kornholio1313_0-1695735590251.png

 

ThanksAmit!, So, I created two tables with the same data. I want to show two calendar filters, one for the chosen "Branded" between dates and the other filter with the "UnBranded" between dates. Can i show this in one table format like this then?

Kornholio1313_0-1695697409074.png

 

@Kornholio1313 ,

If you need branded and unbranded as rows, You need create measures for

UnBranded records, UnBranded Engaged , UnBranded diff

 

Branded records, Branded Engaged , Branded diff

 

As suggested above and then use calculation group to create the desired output.

 

Remember, you need a column, but calculated column can not take slicer value, so you have to go measure way

 

Check the option, where I have split the Calculation group using a custom column

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks, I still didnt get the results I needed, maybe just something that PBI cant do. Oh well back to using Tableau again. I really wanted to show that PBI could do this better than Tableau, but in this case, I guess not.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.