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
giuliapiazza94
Helper IV
Helper IV

Total of SELECTEDVALUE

Hi guys,

I have 2 tables like theese and I want to repeat the credit limit for each date. I've tried to use SELECTEDVALUE(credit limit) and it works but there isn't the total 14700.

 

giuliapiazza94_0-1648645500573.png

 

can you help me please?

thank you all 😁

 

1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hello:

I had a very similiar reply to the same type of question. If you look at the Dates and Limit Table on the attached link you will see the CL by date in the dates table(you have to scroll down as the limit dates start mid-year. The limit table is an example how to format this SCD. https://drive.google.com/file/d/1dziPjkIk2ub9vofzGUTu8krkl58aKZ7K/view?usp=sharing I hope this helps you.

 

Whitewater100_0-1649154905424.pngWhitewater100_1-1649154966772.png

 

 

View solution in original post

5 REPLIES 5
Whitewater100
Solution Sage
Solution Sage

Hello:

I had a very similiar reply to the same type of question. If you look at the Dates and Limit Table on the attached link you will see the CL by date in the dates table(you have to scroll down as the limit dates start mid-year. The limit table is an example how to format this SCD. https://drive.google.com/file/d/1dziPjkIk2ub9vofzGUTu8krkl58aKZ7K/view?usp=sharing I hope this helps you.

 

Whitewater100_0-1649154905424.pngWhitewater100_1-1649154966772.png

 

 

giuliapiazza94
Helper IV
Helper IV

if i use ISINSCOPE it works like

giuliapiazza94_0-1648654059298.png

but the total is wrong because it sum all values, instead It should sum values one time.

 

Ideas to solve the problem?

Hi, @giuliapiazza94 

Please add a new measure like below:

Measure = SUMX(VALUES('Table A'[Customer]),[Measure_credit limit])

1.png

If it doesn't work, please share your sample pbix for further research.

Best Regards,
Community Support Team _ Eason

Hi:

If you want to share a file that represents your issue, that would be helpful.

 

Without knowing much now, you can try a measure like CLOSINGBALANCEMONTH or CLOSINGBALANCEYEAR.

 

First you'd need a date table,marked as such and have it relate to the appropriate tables. Here I'm calling it DATES and the first column name is "Date".

 

Then you can get your total CL,

e.g. CredLimit Total = SUM(Table[CreditLimit])

Then CrdLim EOY =  CLOSINGBALANCEYEAR([CredLimit Total], Dates[Date])

 

Easier to solve with the real data though. Hope this helps!

amitchandak
Super User
Super User

@giuliapiazza94 , Crossjoin or generate

 

crossjoin(Tablea, Tableb)

 

 

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

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.