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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

table creation

Hi ,

    i need to create a table from following data...Add a slicer for underwriter and table will show details of calcualtion like below screen shot..

GWP= sum of POLICY PREMIUM WITHOUT EQ, TRIA, TERRORISM, OR SURCHARGE for the year 2022

Budget=sum of amount for the year 2022

Actual2021=sum of Surcharge for the year 2021

..Total 4 column will be there in table visual and one slicer will be tehre with underwriter values...

after selecting slicer value need to changed based on each underwriter...

 

 

https://www.dropbox.com/s/4hex754x11a8pq6/fact.pbix?dl=0 .table.PNG

plse help?

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I download your sample, here's my solution.

1.Create two calculated columns in fact table.

Month_year = FORMAT('fact'[invoice_date],"MMM"&"/"&YEAR('fact'[invoice_date]))
Year = YEAR('fact'[invoice_date])

Create a calculated column in budget table.

Month_year = FORMAT(DATE(1,'budget'[month],1),"MMM")&"/"&'budget'[year]

2.Make relationship between the two tables with the Month_year column.

vkalyjmsft_0-1652168019618.png

3.Select Month_year column from fact table and other columns you want to sum into the table visual, make two slicers, it will get the correct sum result according to the underwriter and year.

vkalyjmsft_1-1652168119342.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I download your sample, here's my solution.

1.Create two calculated columns in fact table.

Month_year = FORMAT('fact'[invoice_date],"MMM"&"/"&YEAR('fact'[invoice_date]))
Year = YEAR('fact'[invoice_date])

Create a calculated column in budget table.

Month_year = FORMAT(DATE(1,'budget'[month],1),"MMM")&"/"&'budget'[year]

2.Make relationship between the two tables with the Month_year column.

vkalyjmsft_0-1652168019618.png

3.Select Month_year column from fact table and other columns you want to sum into the table visual, make two slicers, it will get the correct sum result according to the underwriter and year.

vkalyjmsft_1-1652168119342.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

jaipal
Resolver III
Resolver III

@Anonymous  Hi, you should need unique identifier (Primary key) to make relationship between both tables, then it can be done

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.