Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have unpivoted multiple columns which where all values, however they are of mixed type. (Whole number, % , Decimals)
Is there a way to get an value for a given attribute with use of measure or caluclated column?
| Attribute | Value |
| A | 5 |
| B | 7 |
| D | 0.2 |
| E | 5.2 |
D = 20%
Solved! Go to Solution.
Try:
D Value =
CALCULATE(SUM(Table[Value]), Table [Attribute] = "D")
and then format the measure as a %
Proud to be a Super User!
Paul on Linkedin.
It worked great thanks 🙂 I've also used the below for a card visual. 🙂
D Value =
CALCULATE(SUM(Table[Value]), Table [Attribute] = "D"), LASTDATE(Table[Date].date))
Try:
D Value =
CALCULATE(SUM(Table[Value]), Table [Attribute] = "D")
and then format the measure as a %
Proud to be a Super User!
Paul on Linkedin.
Thank you so much 🙂 Could I possibly average the result it brings via MTD funciton somehow? (I have a column "DATE and if goes up in 7 day (week) intervals.
It would help if you posted a sample of the data and the expected outcome
Proud to be a Super User!
Paul on Linkedin.
For Example:
| Date | At. | Val. |
| 1/1/2022 | A | 5 |
| 1/1/2022 | B | 0.2 |
| 7/1/2022 | A | 12 |
| 7/1/2022 | B | 0.4 |
B = 30% (Average based on two weeks in that month).
Do you have a date table?
Proud to be a Super User!
Paul on Linkedin.
See if this works:
Aver. B Value =
CALCULATE(AVERAGE('Table'[Val.]),'Table'[At.] = "B")Ave. B Value By Month =
VAR MNTH =
MONTH ( MAX ( 'Table'[Date] ) )
VAR _Calc =
CALCULATE (
[Aver. B Value],
FILTER ( ALL ( 'Table' ), MONTH ( 'Table'[Date] ) = MNTH )
)
RETURN
IF ( AND ( MAX ( 'Table'[At.] ) = "B", ISINSCOPE ( 'Table'[At.] ) ), _Calc )
I've attached the sample PBIX file
Proud to be a Super User!
Paul on Linkedin.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!